非常傻的问题

This commit is contained in:
zogodo
2020-01-10 21:13:02 +08:00
parent 801fc8eccb
commit eff4783bc4
2 changed files with 4 additions and 7 deletions

View File

@@ -279,10 +279,10 @@ static int HttpDelTask(httpd_request_t *req)
char* time_str = strstr(req->filename, "?time=");
app_httpd_log("HttpDelTask url[%s] time_str[%s][%s]", req->filename, time_str, time_str + 6);
int time;
sscanf(time_str + 6, "%d", &time);
int time1;
sscanf(time_str + 6, "%d", &time1);
char* mess = DelTask(time) ? "OK" : "NO";
char* mess = DelTask(time1) ? "OK" : "NO";
OSStatus err = kNoErr;
send_http(mess, strlen(mess), exit, &err);