Kirin 4 роки тому
батько
коміт
eb1d62e4b8
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      app/admin/controller/user/User.php

+ 1 - 0
app/admin/controller/user/User.php

@@ -836,6 +836,7 @@ class User extends AuthController
         $info->check_time = time();
         $info->valid_time = strtotime('+' . $grade_info['year'] . 'year');
         $info->check_id = MemberCheck::max('check_id') + 1;
+        if ($info->check_id < 100) $info->check_id = 100;
         $res = $info->save();
         if ($res) {
             Json::success('已通过');