Explorar o código

改成线上和收款码并行

lizhen_gitee %!s(int64=2) %!d(string=hai) anos
pai
achega
b1ddbe3742
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;