mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 13:08:13 +08:00
获取定时任务OK
This commit is contained in:
@@ -354,7 +354,9 @@ function Ajax(url, onsuccess, type, data) {
|
||||
url: url,
|
||||
type: type,
|
||||
data: data,
|
||||
success: onsuccess,
|
||||
success: function(re) {
|
||||
onsuccess(re.replace(/'/g, '"'));
|
||||
},
|
||||
error: AjaxErr
|
||||
});
|
||||
}
|
||||
@@ -442,6 +444,7 @@ function GetTimedTask() {
|
||||
document.getElementById("timed_task_tb").innerHTML = tb_html;
|
||||
});
|
||||
}
|
||||
GetTimedTask();
|
||||
function AddTimedTask() {
|
||||
var tim = document.getElementById("task_time").value;
|
||||
var idx = document.getElementById("task_skt_idx").value;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -105,7 +105,7 @@ char* GetTaskStr()
|
||||
struct tm* tm_info;
|
||||
time_t prs_time = tmp_tsk->prs_time + 28800;
|
||||
tm_info = localtime(&prs_time);
|
||||
strftime(buffer, 26, "%Y-%m-%d %H:%M:%S", tm_info);
|
||||
strftime(buffer, 26, "%m-%d %H:%M:%S", tm_info);
|
||||
|
||||
sprintf(tmp_str, "{'prs_time':'%s','socket_idx':%d,'on':%d},",
|
||||
buffer, tmp_tsk->socket_idx, tmp_tsk->on);
|
||||
|
||||
Reference in New Issue
Block a user