Browse Source

退款做限制

lizhen_gitee 6 months ago
parent
commit
f9e6967dff
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/index/controller/Plantask.php

+ 2 - 0
application/index/controller/Plantask.php

@@ -53,6 +53,7 @@ class Plantask extends Controller
         ];
 
         //余额支付的直接退款
+        if($wenzhen_order['comefrom'] == 1){
         if($wenzhen_order['pay_type'] == 'wallet'){
 
             //用户加钱
@@ -77,6 +78,7 @@ class Plantask extends Controller
                 $update['refund_status'] = 3; //退款完成
             }
         }
+        }
 
         $update_rs = Db::name('wenzhen_order')->where('id',$order_id)->update($update);
         if(!$update_rs){