|
@@ -67,8 +67,8 @@ class XiyueController extends Controller
|
|
return response()->error('PARAM_ERROR');
|
|
return response()->error('PARAM_ERROR');
|
|
}
|
|
}
|
|
|
|
|
|
- if($amount > $user->balance){
|
|
|
|
- return response()->error('PARAM_ERROR');
|
|
|
|
|
|
+ if($amount > $user->balance || $amount > $user->charge_balance){
|
|
|
|
+ return response()->error('WAP_INSUFFICIENT_BALANCE');
|
|
}
|
|
}
|
|
$data = [];
|
|
$data = [];
|
|
$data['uid'] = $user->id;
|
|
$data['uid'] = $user->id;
|