Browse Source

退珍条件限制

lizhen_gitee 6 months ago
parent
commit
2d5d1ed0d6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Wenzhen.php

+ 2 - 2
application/api/controller/Wenzhen.php

@@ -548,13 +548,13 @@ class Wenzhen extends Api
             }
 
             //超过支付时间一小时不能退
-            if( time() - $wenzhen_order['pay_time'] > 3600){
+            if($wenzhen_order['status'] == 20 && (time() - $wenzhen_order['pay_time'] > 3600)){
                 Db::rollback();
                 $this->error('支付超过一小时,不能退诊');
             }
         }else{
             //即时模式,已付款没接的能退
-            if(!in_array($wenzhen_order['status'],[10])){
+            if($wenzhen_order['status'] != 10){
                 Db::rollback();
                 $this->error('当前订单不能退诊');
             }