Browse Source

xiyue pay notify

zz 5 years ago
parent
commit
0b2d0d469d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/Wap/Other/XiyueController.php

+ 2 - 2
app/Http/Controllers/Wap/Other/XiyueController.php

@@ -67,8 +67,8 @@ class XiyueController extends Controller
             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['uid'] = $user->id;