Kirin hace 2 años
padre
commit
44d5a3b1c1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 ? '' : ('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 {