lizhen_gitee 1 hónapja
szülő
commit
034d1cfd69
1 módosított fájl, 8 hozzáadás és 5 törlés
  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);
+
         }
 
     }