瀏覽代碼

计划任务

lizhen_gitee 3 月之前
父節點
當前提交
034d1cfd69
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8 5
      application/index/controller/Plantask.php

+ 8 - 5
application/index/controller/Plantask.php

@@ -31,6 +31,13 @@ class Plantask extends Controller
         }
 
         foreach($task_list as $slot){
+
+            //这节课时,任务完成
+            $update = [
+                'notice_status' => 1,
+            ];
+            Db::name('lesson_slot')->where('id',$slot['id'])->update($update);
+            
             //找出这节课时的预约单
             $map = [
                 'order.order_status' => 10,
@@ -101,11 +108,7 @@ class Plantask extends Controller
 
             }
             }
-            //这节课时,任务完成
-            $update = [
-                'notice_status' => 1,
-            ];
-            Db::name('lesson_slot')->where('id',$slot['id'])->update($update);
+
         }
 
     }