1
This commit is contained in:
@@ -46,6 +46,14 @@ type CallbackMsg struct {
|
|||||||
Data interface{} `json:"data"`
|
Data interface{} `json:"data"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type EBaiShopList struct {
|
||||||
|
BaiduShopID string `json:"baidu_shop_id"`
|
||||||
|
ShopID string `json:"shop_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Source string `json:"source"`
|
||||||
|
SupplierID string `json:"supplier_id"`
|
||||||
|
}
|
||||||
|
|
||||||
type CBPartRefundInfo struct {
|
type CBPartRefundInfo struct {
|
||||||
OrderID int64 `json:"order_id"`
|
OrderID int64 `json:"order_id"`
|
||||||
RefundID string `json:"refund_id"`
|
RefundID string `json:"refund_id"`
|
||||||
|
|||||||
@@ -42,15 +42,11 @@ func (a *Api) GetToken() error {
|
|||||||
|
|
||||||
// GetExpressPrice 获取快递费用
|
// GetExpressPrice 获取快递费用
|
||||||
func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, error) {
|
func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, error) {
|
||||||
globals.SugarLogger.Debug("进入GetExpressPrice")
|
|
||||||
if err := a.CheckTokenExpiration(); err != nil {
|
if err := a.CheckTokenExpiration(); err != nil {
|
||||||
globals.SugarLogger.Debug("打印err1===================", err)
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := a.AccessInfo(BaseQBiDaUrl, GetWayBailMoneyUrl, http.MethodPost, utils.Struct2FlatMap(param))
|
result, err := a.AccessInfo(BaseQBiDaUrl, GetWayBailMoneyUrl, http.MethodPost, utils.Struct2FlatMap(param))
|
||||||
globals.SugarLogger.Debug("打印result===================", result)
|
|
||||||
globals.SugarLogger.Debug("打印err2===================", err)
|
|
||||||
if err != nil && !strings.Contains(err.Error(), "成功") {
|
if err != nil && !strings.Contains(err.Error(), "成功") {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@@ -62,7 +58,6 @@ func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, e
|
|||||||
if resultData.Code != 0 {
|
if resultData.Code != 0 {
|
||||||
return nil, errors.New(resultData.Msg)
|
return nil, errors.New(resultData.Msg)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debug("返回前打印resultData===================", resultData)
|
|
||||||
return resultData, nil
|
return resultData, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,8 +87,6 @@ func (a *Api) CancelOrder(param *CancelOrderReq) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
result, err := a.AccessInfo(BaseQBiDaUrl, CancelWayBailOrderUrl, http.MethodPost, utils.Struct2FlatMap(param))
|
result, err := a.AccessInfo(BaseQBiDaUrl, CancelWayBailOrderUrl, http.MethodPost, utils.Struct2FlatMap(param))
|
||||||
globals.SugarLogger.Debug("err= =====ded==================", err)
|
|
||||||
|
|
||||||
if err != nil && !strings.Contains(err.Error(), "成功") {
|
if err != nil && !strings.Contains(err.Error(), "成功") {
|
||||||
err = nil //TODO 测试部分,记得删除
|
err = nil //TODO 测试部分,记得删除
|
||||||
//return err
|
//return err
|
||||||
|
|||||||
Reference in New Issue
Block a user