Explorar el Código

Merge branch 'master' of iqiyoo:zhuishuyun_wap

onlinetest hace 6 años
padre
commit
5d2b677c70
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;