Browse Source

未激活的配套不需要通知

lizhen_gitee 4 months ago
parent
commit
da2d6394f2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      application/index/controller/Plantask.php

+ 4 - 1
application/index/controller/Plantask.php

@@ -239,6 +239,7 @@ class Plantask extends Controller
 
         $map = [
             'order.order_status' => 1,
+            'order.use_status' => 1,
             'order.remain' => ['gt',0],
             'order.endtime' => ['lt',time()+(86400*30)],
             'order.notice_status' => 0,
@@ -306,6 +307,7 @@ class Plantask extends Controller
 
         $map = [
             'order.order_status' => 1,
+            'order.use_status' => 1,
             'order.remain' => ['gt',0],
             'order.endtime' => ['lt',time()+(86400*14)],
             'order.notice_status' => 1,
@@ -372,6 +374,7 @@ class Plantask extends Controller
     public function auto_package_order_notice_1week(){
         $map = [
             'order.order_status' => 1,
+            'order.use_status' => 1,
             'order.remain' => ['gt',0],
             'order.endtime' => ['lt',time()+(86400*7)],
             'order.notice_status' => 2,
@@ -429,7 +432,7 @@ class Plantask extends Controller
 
             //任务完成
             $update = [
-                'notice_status' => 3,//2周通知已发送
+                'notice_status' => 3,//1周通知已发送
             ];
             Db::name('package_order')->where('id',$order['id'])->update($update);
         }