Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop
This commit is contained in:
@@ -552,9 +552,9 @@ func CreateFreightTemplate(storeCode int) (int64, error) {
|
||||
Children: []freightTemplate_create_request.ChildrenItem_5{
|
||||
{
|
||||
Id: int64(storeDetail.DistrictCode),
|
||||
Children: []freightTemplate_create_request.ChildrenItem{
|
||||
{Id: 0},
|
||||
},
|
||||
//Children: []freightTemplate_create_request.ChildrenItem{
|
||||
// {Id: 0},
|
||||
//},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -571,9 +571,9 @@ func CreateFreightTemplate(storeCode int) (int64, error) {
|
||||
Children: []freightTemplate_create_request.ChildrenItem_5{
|
||||
{
|
||||
Id: int64(storeDetail.DistrictCode),
|
||||
Children: []freightTemplate_create_request.ChildrenItem{
|
||||
{Id: 0},
|
||||
},
|
||||
//Children: []freightTemplate_create_request.ChildrenItem{
|
||||
// {Id: 0},
|
||||
//},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -270,7 +270,7 @@ func SpecialTreat(vendorOrgCode string, vendorStoreID, storeID, deliveryFeeDeduc
|
||||
//errList.AddErr(fmt.Errorf("获取门店(%d) 绑定运费模板出错:%v", vendorStoreID, err))
|
||||
}
|
||||
if bindFreightIDs == 0 { //(1)未查询到绑定信息,不算错误
|
||||
if freightTemplateID, err := CreateFreightTemplate(int(storeID)); err != nil || freightTemplateID == 0 || utils.IsNil(freightTemplateID) {
|
||||
if freightTemplateID, err := CreateFreightTemplate(int(storeID)); err != nil || freightTemplateID == 0 {
|
||||
errList.AddErr(fmt.Errorf("创建运费模板失败:%v", err))
|
||||
} else { //绑定
|
||||
if err = ShopBindStoreFreight(vendorOrgCode, vendorStoreID, freightTemplateID); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user