yingzi před 2 roky
rodič
revize
445dd1f58c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);