diff --git a/erp/staff_user.go b/erp/staff_user.go index 751cdbc..5d2bf53 100644 --- a/erp/staff_user.go +++ b/erp/staff_user.go @@ -50,7 +50,7 @@ func (e *StaffUser) SendCode(username, scene string) (*StaffCode, error) { func (e *StaffUser) Login(username, timestamp, code string) (*StaffInfo, error) { reqBody := fmt.Sprintf(`{"username":"%s","timestamp":"%s","code":"%s"}`, username, timestamp, code) - reqUrl := e.GetBaseUrl() + "/ext/staff/login" + reqUrl := e.GetBaseUrl() + "/ext/staff/user/login" body, err := goutil.HttpPost(reqUrl, e.GetHeader(), []byte(reqBody)) if err != nil { return nil, err