|
@@ -87,7 +87,7 @@ class UserWalletApply extends Model
|
|
|
|
|
|
// 计算手续费
|
|
|
$charge = $money * $service_fee;
|
|
|
- if ($user->money < $charge + $money) {
|
|
|
+ if ($user->money < $money) {
|
|
|
throw \Exception('可提现余额不足');
|
|
|
}
|
|
|
|
|
@@ -136,7 +136,8 @@ class UserWalletApply extends Model
|
|
|
$apply->save();
|
|
|
self::handleLog($apply, '用户发起提现申请');
|
|
|
// 扣除用户余额
|
|
|
- User::money(- ($money + $charge), $user->id, 'cash', $apply->id);
|
|
|
+ // User::money(- ($money + $charge), $user->id, 'cash', $apply->id);
|
|
|
+ User::money(- $money , $user->id, 'cash', $apply->id);
|
|
|
|
|
|
// 检查是否执行自动打款
|
|
|
$autoCheck = false;
|