log
This commit is contained in:
@@ -45,10 +45,12 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt
|
|||||||
return nil, errors.New("获取抖音平台账号信息失败,请重试")
|
return nil, errors.New("获取抖音平台账号信息失败,请重试")
|
||||||
}
|
}
|
||||||
apiObj := getAPI(relInfo.VendorOrgCode)
|
apiObj := getAPI(relInfo.VendorOrgCode)
|
||||||
|
globals.SugarLogger.Debugf("apiObj=============%v", apiObj)
|
||||||
if storeInfo, err := apiObj.GetStoreDetail(&shop_getStoreDetail_request.ShopGetStoreDetailParam{
|
if storeInfo, err := apiObj.GetStoreDetail(&shop_getStoreDetail_request.ShopGetStoreDetailParam{
|
||||||
//if storeInfo, err := api.TiktokStore.GetStoreDetail(&shop_getStoreDetail_request.ShopGetStoreDetailParam{
|
//if storeInfo, err := api.TiktokStore.GetStoreDetail(&shop_getStoreDetail_request.ShopGetStoreDetailParam{
|
||||||
StoreId: vendorStoreID,
|
StoreId: vendorStoreID,
|
||||||
}); err == nil {
|
}); err == nil {
|
||||||
|
globals.SugarLogger.Debugf("DYPS GetStore storeInfo=====%s", utils.Format4Output(storeInfo, false))
|
||||||
storeDetail = &dao.StoreDetail2{
|
storeDetail = &dao.StoreDetail2{
|
||||||
Store: model.Store{
|
Store: model.Store{
|
||||||
Name: storeInfo.StoreDetail.Store.Name,
|
Name: storeInfo.StoreDetail.Store.Name,
|
||||||
@@ -61,6 +63,8 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt
|
|||||||
VendorStoreID: utils.Int64ToStr(storeInfo.StoreDetail.Store.StoreId),
|
VendorStoreID: utils.Int64ToStr(storeInfo.StoreDetail.Store.StoreId),
|
||||||
CourierStatus: int(storeInfo.StoreDetail.Store.State),
|
CourierStatus: int(storeInfo.StoreDetail.Store.State),
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
globals.SugarLogger.Debugf("GetStoreDetail err=========%s", err)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("DYPS GetStore storeDetail====%s", utils.Format4Output(storeDetail, false))
|
globals.SugarLogger.Debugf("DYPS GetStore storeDetail====%s", utils.Format4Output(storeDetail, false))
|
||||||
return storeDetail, err
|
return storeDetail, err
|
||||||
|
|||||||
Reference in New Issue
Block a user