feat: add new API endpoints for team processes
This commit is contained in:
@@ -862,6 +862,11 @@ func processSingleTeam(idx int, req TeamProcessRequest) (result TeamProcessResul
|
||||
regProxy = poolProxy
|
||||
}
|
||||
}
|
||||
regProxyDisplay := "直连"
|
||||
if regProxy != "" {
|
||||
regProxyDisplay = getProxyDisplay(regProxy)
|
||||
}
|
||||
logger.Info(fmt.Sprintf("%s Email: %s | Password: %s | Proxy: %s", memberLogPrefix, currentEmail, currentPassword, regProxyDisplay), currentEmail, "team")
|
||||
_, err := register.APIRegister(currentEmail, currentPassword, name, birthdate, regProxy, memberLogPrefix)
|
||||
if err != nil {
|
||||
logger.Error(fmt.Sprintf("%s [注册失败] %v", memberLogPrefix, err), currentEmail, "team")
|
||||
@@ -914,7 +919,6 @@ func processSingleTeam(idx int, req TeamProcessRequest) (result TeamProcessResul
|
||||
}
|
||||
email := mail.GenerateEmail()
|
||||
password := register.GeneratePassword()
|
||||
logger.Info(fmt.Sprintf("%s [Member %d] Email: %s | Password: %s", logPrefix, idx+1, email, password), email, "team")
|
||||
registerAndS2AMember(idx, email, password)
|
||||
}(i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user