This commit is contained in:
jiangyong 2026-05-06 16:24:13 +08:00
parent c9bfe84484
commit 4f189f6e2f
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func (e *StaffUser) SendVerifyCode(username, scene string) (*VerifyCode, error)
func (e *StaffUser) Login(username, timestamp, code string) (*StaffInfo, error) { func (e *StaffUser) Login(username, timestamp, code string) (*StaffInfo, error) {
reqBody := fmt.Sprintf(`{"username":"%s","timestamp":"%s","code":"%s"}`, username, timestamp, code) reqBody := fmt.Sprintf(`{"username":"%s","timestamp":"%s","code":"%s"}`, username, timestamp, code)
reqUrl := e.GetBaseUrl() + "/api/staff/login" reqUrl := e.GetBaseUrl() + "/ext/staff/login"
body, err := goutil.HttpPost(reqUrl, e.GetHeader(), []byte(reqBody)) body, err := goutil.HttpPost(reqUrl, e.GetHeader(), []byte(reqBody))
if err != nil { if err != nil {
return nil, err return nil, err