devolp пре 3 година
родитељ
комит
62366a155a
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      app/admin/logic/ScoreLogLogic.php
  2. 1 1
      app/admin/logic/UserLogic.php

+ 1 - 1
app/admin/logic/ScoreLogLogic.php

@@ -48,7 +48,7 @@ class ScoreLogLogic
         return self::$typeMap;
         return self::$typeMap;
     }
     }
 
 
-    public static function scoreLog(mixed $page, mixed $limit, mixed $where, array $sort)
+    public static function scoreLog($page, $limit, $where, $sort)
     {
     {
         $model     = new ScoreLogModel();
         $model     = new ScoreLogModel();
         $count     = $model
         $count     = $model

+ 1 - 1
app/admin/logic/UserLogic.php

@@ -116,7 +116,7 @@ class UserLogic
         $user = User::getUserById($post['id']);
         $user = User::getUserById($post['id']);
         if (empty($user)) return '用户不存在';
         if (empty($user)) return '用户不存在';
 
 
-        if (empty($post['recycle_count']) || $post['recycle_count'] < 0 || $post['recycle_count'] > 500) {
+        if (empty($post['recycle_count']) || !preg_match("/^[1-9][0-9]*$/", $post['recycle_count']) || $post['recycle_count'] > 500) {
             return '回收卡数量格式有误';
             return '回收卡数量格式有误';
         }
         }