Explorar o código

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

yuliang1112 %!s(int64=2) %!d(string=hai) anos
pai
achega
1861b90cc5
Modificáronse 1 ficheiros con 1 adicións e 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)