yingzi há 2 anos atrás
pai
commit
824efb8d95
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      app/system/controller/Member.php

+ 1 - 2
app/system/controller/Member.php

@@ -229,11 +229,10 @@ class Member extends BaseController
         if(!in_array((string)$post["type"],["1","-1"])){
             return app('json')->fail('请选择增减');
         }
+        $post["into"] = bcadd("0",$post["into"],2);
         if(!is_numeric($post["into"]) || $post["into"]<=0){
             return app('json')->fail('请输入正确的金额');
         }
-        $post["into"] = bcadd("0",$post["into"],2);
-        
         if ($post['type'] == 1)
             $bool = (new UserDetailModel)->adminAddMoney($userData['uid'], $post['into'],  $request->adminInfo['id'],$post['othen']);