|
@@ -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;
|
|
|
}
|
|
|
|