yingzi 2 年 前
コミット
445dd1f58c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/system/controller/Member.php

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

@@ -229,7 +229,7 @@ class Member extends BaseController
         if(!in_array((string)$post["type"],["1","-1"])){
             return app('json')->fail('请选择增减');
         }
-        if(!is_numeric($post["into"])){
+        if(!is_numeric($post["into"]) || $post["into"]<=0){
             return app('json')->fail('请输入正确的金额');
         }
         $post["into"] = bcadd("0",$post["into"],2);