This commit is contained in:
jiangyong 2026-05-06 14:29:53 +08:00
parent 62187b9f96
commit c9bfe84484
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {