1
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -85,8 +84,7 @@ func (a *API) CreateOrder(createOrderParam *CreateOrderReqParam) (result string,
|
|||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
globals.SugarLogger.Debugf("CreateOrder =======resultData := %s", utils.Format4Output(resultData, false))
|
if utils.Interface2String(resultData["code"]) != "200" {
|
||||||
if utils.Interface2String(resultData["code"]) != "200" || utils.Interface2String(resultData["apiCode"]) != "" {
|
|
||||||
return "", fmt.Errorf(fmt.Sprintf("其他异常错误信息:%s", utils.Interface2String(resultData["apiCode"])))
|
return "", fmt.Errorf(fmt.Sprintf("其他异常错误信息:%s", utils.Interface2String(resultData["apiCode"])))
|
||||||
}
|
}
|
||||||
if orderId, ok := resultData["business_data"]; ok {
|
if orderId, ok := resultData["business_data"]; ok {
|
||||||
|
|||||||
Reference in New Issue
Block a user