Prechádzať zdrojové kódy

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

yuliang1112 2 rokov pred
rodič
commit
1861b90cc5
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)