Kirin %!s(int64=4) %!d(string=hai) anos
pai
achega
eb1d62e4b8
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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('已通过');