Преглед на файлове

改成线上和收款码并行

lizhen_gitee преди 2 години
родител
ревизия
b1ddbe3742
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      application/api/controller/Order.php

+ 3 - 0
application/api/controller/Order.php

@@ -27,13 +27,16 @@ class order extends Api
 
         if($active_status == 1){
             $where['active.activestarttime'] = ['gt',time()];
+            $where['order.status'] = 1;
         }
         if($active_status == 2){
             $where['active.activestarttime'] = ['lt',time()];
             $where['active.activeendtime'] = ['gt',time()];
+            $where['order.status'] = 1;
         }
         if($active_status == 3){
             $where['active.activeendtime'] = ['lt',time()];
+            $where['order.status'] = 1;
         }
         if($active_status == 4){
             $where['order.pay_type'] = 2;