瀏覽代碼

submit logs

lusa 5 年之前
父節點
當前提交
e00bbdd4c6
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 3 0
      app/goahead-3.6.5/src/file.c
  2. 0 2
      app/goahead-3.6.5/src/web_interface/src/dashboard.c

+ 3 - 0
app/goahead-3.6.5/src/file.c

@@ -75,7 +75,9 @@ static bool fileHandler(Webs *wp)
             return 1;
         }
         code = 200;
+        printf(">>>>>>>>>>>>>>>>>>>>>>>1>>>>>>>>>>>\n");
         if (wp->since && info.mtime <= wp->since) {
+            printf(">>>>>>>>>>>>>>>>>>>>>>>2>>>>>>>>>>>\n");
             code = 304;
             info.size = 0;
         }
@@ -188,6 +190,7 @@ PUBLIC void websFileOpen()
  */
 PUBLIC char *websGetIndex()
 {
+    printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>fffffffff\n");
     return websIndex;
 }
 

+ 0 - 2
app/goahead-3.6.5/src/web_interface/src/dashboard.c

@@ -294,7 +294,6 @@ void getSensorInfo(Webs *wp){
             // pStr = cJSON_Print(pJsonArry);
             cJSON_AddItemToObject(root, "data", pJsonArry);
             pStr = cJSON_PrintUnformatted(root);
-            logmsg(2, "-----------------------sensor--111--------------------%s", pStr);
 
             websSetStatus(wp, 200);
             websWriteHeaders(wp, -1, 0);
@@ -322,7 +321,6 @@ void buy(Webs *wp)
     char    *name, *age;
     name = websGetVar(wp, "name", NULL);
     age = websGetVar(wp, "age", NULL);
-     logmsg(2, "----------------------------11-----------------");
     logmsg(2, "name value is : %s", name );
      logmsg(2, "age value is : %s", age );
     websSetStatus(wp, 200);