diff --git a/enterprise/approval_profit.go b/enterprise/approval_profit.go index 7026139..6d06b3e 100644 --- a/enterprise/approval_profit.go +++ b/enterprise/approval_profit.go @@ -39,7 +39,7 @@ func NewApprovalProfit(baseUrl, token string) *ApprovalProfit { func (e *ApprovalProfit) Create(req *ApprovalProfitCreate) error { var reqBody string reqBody = goutil.EncodeJSON(req) - reqUrl := e.GetBaseUrl() + "/api/approval/profit" + reqUrl := e.GetBaseUrl() + "/ext/approval/profit" body, err := goutil.HttpPost(reqUrl, e.GetHeader(), []byte(reqBody)) if err != nil { diff --git a/enterprise/staff_user.go b/enterprise/staff_user.go index 2f82aee..7ee8730 100644 --- a/enterprise/staff_user.go +++ b/enterprise/staff_user.go @@ -37,7 +37,7 @@ func NewStaffUser(baseUrl, token string) *StaffUser { func (e *StaffUser) SendVerifyCode(username, scene string) (*VerifyCode, error) { var reqBody string reqBody = fmt.Sprintf(`{"username":"%s","scene":"%s"}`, username, scene) - reqUrl := e.GetBaseUrl() + "/api/staff/verify/code" + reqUrl := e.GetBaseUrl() + "/ext/staff/verify/code" body, err := goutil.HttpPost(reqUrl, e.GetHeader(), []byte(reqBody)) if err != nil {