diff --git a/platformapi/ebaiapi/callback.go b/platformapi/ebaiapi/callback.go index 39bb5e3d..9897a7ed 100644 --- a/platformapi/ebaiapi/callback.go +++ b/platformapi/ebaiapi/callback.go @@ -46,6 +46,14 @@ type CallbackMsg struct { 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 { OrderID int64 `json:"order_id"` RefundID string `json:"refund_id"` diff --git a/platformapi/q_bida/q_bida_client.go b/platformapi/q_bida/q_bida_client.go index 6234acf4..a4e327e0 100644 --- a/platformapi/q_bida/q_bida_client.go +++ b/platformapi/q_bida/q_bida_client.go @@ -42,15 +42,11 @@ func (a *Api) GetToken() error { // GetExpressPrice 获取快递费用 func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, error) { - globals.SugarLogger.Debug("进入GetExpressPrice") if err := a.CheckTokenExpiration(); err != nil { - globals.SugarLogger.Debug("打印err1===================", err) return nil, err } 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(), "成功") { return nil, err } @@ -62,7 +58,6 @@ func (a *Api) GetExpressPrice(param *GetExpressPriceReq) (*GetExpressPriceRes, e if resultData.Code != 0 { return nil, errors.New(resultData.Msg) } - globals.SugarLogger.Debug("返回前打印resultData===================", resultData) 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)) - globals.SugarLogger.Debug("err= =====ded==================", err) - if err != nil && !strings.Contains(err.Error(), "成功") { err = nil //TODO 测试部分,记得删除 //return err