1
This commit is contained in:
@@ -660,7 +660,9 @@ func (a *API) EbaiRefundOrder(param *RefundOrderExamine) error {
|
|||||||
if (param.ActionType == RefundTypeRefuse || param.ActionType == RefundTypeRefuseGoods) && param.ReasonCode == "" {
|
if (param.ActionType == RefundTypeRefuse || param.ActionType == RefundTypeRefuseGoods) && param.ReasonCode == "" {
|
||||||
param.ReasonCode = "7001"
|
param.ReasonCode = "7001"
|
||||||
}
|
}
|
||||||
|
if param.ReasonRemarks != "" {
|
||||||
|
param.ActionType = 2
|
||||||
|
}
|
||||||
_, err := a.AccessAPI("order.reverse.process", utils.Struct2MapByJson(param))
|
_, err := a.AccessAPI("order.reverse.process", utils.Struct2MapByJson(param))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -224,8 +224,9 @@ func (a *API) ShopGet2(shopID string, baiduShopID int64) (shopDetail *ShopDetail
|
|||||||
|
|
||||||
func (a *API) ShopUpdate(params map[string]interface{}) (err error) {
|
func (a *API) ShopUpdate(params map[string]interface{}) (err error) {
|
||||||
globals.SugarLogger.Debugf("================param := %s", utils.Format4Output(params, false))
|
globals.SugarLogger.Debugf("================param := %s", utils.Format4Output(params, false))
|
||||||
_, err = a.AccessAPI("shop.update", params)
|
data, err := a.AccessAPI("shop.update", params)
|
||||||
globals.SugarLogger.Debugf("================err := %v", err)
|
globals.SugarLogger.Debugf("================err := %v", err)
|
||||||
|
globals.SugarLogger.Debugf("================err := %s", utils.Format4Output(data, false))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,20 +80,12 @@ func TestShopAptitudeGet(t *testing.T) {
|
|||||||
|
|
||||||
func TestShopUpdate(t *testing.T) {
|
func TestShopUpdate(t *testing.T) {
|
||||||
params := map[string]interface{}{
|
params := map[string]interface{}{
|
||||||
//KeyName: "好菜鲜生(龙宫市场店)",
|
"address": "四川省成都市双流区东升街道藏卫路中段21号D区23号",
|
||||||
//KeyPhone: "13812345678",
|
"baidu_shop_id": "511574437",
|
||||||
KeyBaiduShopID: "2097134681",
|
"business_time": []map[string]string{{"end": "19:30", "start": "07:30"}},
|
||||||
//"longitude": 116.307884,
|
"ivr_phone": "17366937206",
|
||||||
//"latitude": 40.036828,
|
"package_box_price": 100,
|
||||||
//"coord_type": "amap",
|
"service_phone": "13310841099",
|
||||||
//"province": "131",
|
|
||||||
//"city": "131",
|
|
||||||
//"county": "1960",
|
|
||||||
//"address": "北京市海淀区上地信息路甲9号",
|
|
||||||
//"takeout_shop_logo": "https://image-star.elemecdn.com/pb/b79d499b9b0be5deb3ee3ce71bf29ad0a8",
|
|
||||||
//"baidu_takeout_logo": "https://image-star.elemecdn.com/pb/b79d499b9b0be5deb3ee3ce71bf29ad0a8",
|
|
||||||
//"ele_takeout_logo": "https://image-star.elemecdn.com/pb/b79d499b9b0be5deb3ee3ce71bf29ad0a8",
|
|
||||||
//"baidu_takeout_logo" //takeoutShopLogo//baiduTakeoutLogo
|
|
||||||
}
|
}
|
||||||
err := api.ShopUpdate(params)
|
err := api.ShopUpdate(params)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -9,6 +9,11 @@ import (
|
|||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestName(t *testing.T) {
|
||||||
|
fmt.Println(1 | 2)
|
||||||
|
fmt.Println(1 | 6)
|
||||||
|
|
||||||
|
}
|
||||||
func TestLimitSpeed(t *testing.T) {
|
func TestLimitSpeed(t *testing.T) {
|
||||||
limiter := New(map[string]*LimiterConfig{
|
limiter := New(map[string]*LimiterConfig{
|
||||||
"limited1persecond": &LimiterConfig{
|
"limited1persecond": &LimiterConfig{
|
||||||
|
|||||||
Reference in New Issue
Block a user