Kirin 1 year ago
parent
commit
7e7be0d6e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/user/Cert.php

+ 1 - 1
app/models/user/Cert.php

@@ -134,7 +134,7 @@ class Cert extends BaseModel
     {
         $str = CertType::where('cert_name', $info['job'])->value('cert_code');
         if (!$str) $str = 'UK';
-        $str .= ($info['level'] == '4' ? 'T' : ('0' . $info['level']));
+        $str .= ($info['level'] == 4 ? 'T' : ('0' . $info['level']));
         $str .= '-021-' . substr($info['idcard'], strlen($info['idcard']) - 4, 4);
         $str .= '-' . str_pad((self::where('status', 1)->count() + 1), 4, 0, STR_PAD_LEFT);
 //        do {