Explorar el Código

修改企业用户id创建的问题

yuliang1112 hace 2 años
padre
commit
1861b90cc5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      service/enterprise.go

+ 1 - 1
service/enterprise.go

@@ -40,7 +40,7 @@ func (*enterprise) CreateEnterpriseUser(ctx context.Context, newEnterprise http_
 		if len(tm) < 2 {
 			tm = "0" + tm
 		}
-		if len(tm) < 2 {
+		if len(th) < 2 {
 			th = "0" + th
 		}
 		ShowEnterpriseID := "1" + th + tm + conv.MustString(rand.Intn(10000-1000)+1000)