ext
This commit is contained in:
parent
c9bfe84484
commit
4f189f6e2f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue