This commit is contained in:
邹宗楠
2025-07-31 18:26:02 +08:00
parent 4c2d4c4d2f
commit 25113cd954
2 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"time"
)
@@ -19,7 +20,7 @@ func (a *API) CreateOrder(param *CreateOrderReq) (*CreateOrderResp, error) {
if err != nil {
return nil, err
}
globals.SugarLogger.Debugf("--------CreateOrder := %s", utils.Format4Output(result, false))
if result["code"].(string) != Success {
return nil, fmt.Errorf(result["msg"].(string))
}

View File

@@ -123,7 +123,7 @@ func TestCloseOrder(t *testing.T) {
}
func TestQueryOrder(t *testing.T) {
api.QueryOrder("88491067682798", "822651059990E2S")
api.QueryOrder("88491067682798", "141804158")
}
func TestRefundOrderQuery(t *testing.T) {