Browse Source

活动时间

Cherry 2 years ago
parent
commit
cf1992fcb4
1 changed files with 7 additions and 2 deletions
  1. 7 2
      application/api/controller/Pond.php

+ 7 - 2
application/api/controller/Pond.php

@@ -198,7 +198,7 @@ class Pond extends Api
             ->where('method_id', $method_id)
             ->where('eat', 2)
             ->whereIn('status', '2,3')
-            ->field('id,phone,user_id,yutang,image,auto_expire,huodong_time')->select();
+            ->field('id,phone,user_id,yutang,image,auto_expire,huodong_time,pay_openid')->select();
         if (empty($mobiles)) {
             $this->error('没有就餐人员');
         }
@@ -245,6 +245,11 @@ class Pond extends Api
             }
         }
 
+//        // 异步立即发送
+//        \think\Queue::push('\app\job\OrderJob@lunchSubRun', [
+//            'order_list' => $mobiles,
+//        ]);
+
         $this->success('午餐通知已发出');
     }
 
@@ -265,7 +270,7 @@ class Pond extends Api
         $status = input('status', 0);
 
         $method_model = new Method();
-        $query = $method_model->field('id,type,show_images,yutang_name,moshi');
+        $query = $method_model->field('id,type,show_images,yutang_name,moshi,huodong_time');
         switch ($status) {
             case 0:
                 $query = $query->where('huodong_time', date('Y-m-d', time()));