|
@@ -658,19 +658,19 @@ func (c *TaskDataController) TaskData_AddS() {
|
|
|
|
|
|
}
|
|
|
|
|
|
- //for _, v := range T_Data_list {
|
|
|
- // // 132|132|23.9|72.1|2023-04-30 07:03:00
|
|
|
- // if len(v) < 5 {
|
|
|
- // println(v, "len(v) < 5")
|
|
|
- // continue
|
|
|
- // }
|
|
|
- // v_list := strings.Split(v, "|")
|
|
|
- // t, _ := lib.ReplaceSeconds(v_list[4])
|
|
|
- // is := Task.Add_TaskData(Task_r.T_task_id, v_list[0], v_list[1], v_list[2], v_list[3], t)
|
|
|
- // if is {
|
|
|
- // T_Data_list_x += 1
|
|
|
- // }
|
|
|
- //}
|
|
|
+ for _, v := range T_Data_list {
|
|
|
+ // 132|132|23.9|72.1|2023-04-30 07:03:00
|
|
|
+ if len(v) < 5 {
|
|
|
+ println(v, "len(v) < 5")
|
|
|
+ continue
|
|
|
+ }
|
|
|
+ v_list := strings.Split(v, "|")
|
|
|
+ t, _ := lib.ReplaceSeconds(v_list[4])
|
|
|
+ is := Task.Add_TaskData(Task_r.T_task_id, v_list[0], v_list[1], v_list[2], v_list[3], t)
|
|
|
+ if is {
|
|
|
+ T_Data_list_x += 1
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
System.Add_UserLogs_T(T_uuid, "本地版-任务数据", "添加数据"+Task_r.T_name, Task_r.T_task_id+"结果:"+string(len(T_Data_list))+"/"+string(T_Data_list_x)+"|=> "+T_Data)
|
|
|
|