wupengfei 2 years ago
parent
commit
1395491923
1 changed files with 3 additions and 1 deletions
  1. 3 1
      addons/shopro/model/UserWalletApply.php

+ 3 - 1
addons/shopro/model/UserWalletApply.php

@@ -153,7 +153,6 @@ class UserWalletApply extends Model
 
         // 扣除用户余额
         User::money(- ($money + $charge), $user->id, 'cash', $apply->id);
-        throw \Exception('666666');
         // 检查是否执行自动打款
         $autoCheck = false;
         if ($type !== 'bank' && $config['wechat_alipay_auto']) {
@@ -161,9 +160,12 @@ class UserWalletApply extends Model
         }
 
         if ($autoCheck) {
+            throw \Exception('111111');
             $apply = self::handleAgree($apply);
+            throw \Exception('2222');
             $apply = self::handleWithdraw($apply);
         }
+        throw \Exception('3333');
         return $apply;
     }