1
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user