login
This commit is contained in:
parent
593bf8e46a
commit
b55ac43bb9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue