zgg hai 2 días
pai
achega
c67fedf6ab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      application/common/model/PhOrders.php

+ 1 - 0
application/common/model/PhOrders.php

@@ -498,6 +498,7 @@ class PhOrders extends Base
                 ->where('order_id',$v['order_id'])
                 ->where('user_id',$v['user_id'])
                 ->where('id','<>',$data['id'])
+                ->where('status',1)
                 ->select();
             if(count($todos) >=1){
                 foreach ($todos as $kk=>$vv){