- UpdateStore中只有在需要时才调用updateCourierStores
- 修复jd.GetSkus的BUG
This commit is contained in:
@@ -636,12 +636,12 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
|||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
globals.SugarLogger.Debugf("UpdateStore track:%s, before call SyncStore", ctx.GetTrackInfo())
|
globals.SugarLogger.Debugf("UpdateStore track:%s, before call SyncStore", ctx.GetTrackInfo())
|
||||||
_, err = CurVendorSync.SyncStore(ctx, db, -1, store.ID, false, userName)
|
_, err = CurVendorSync.SyncStore(ctx, db, -1, store.ID, false, userName)
|
||||||
if err2 := updateCourierStores(ctx, storeID); err2 != nil && err == nil {
|
|
||||||
err = err2
|
|
||||||
}
|
|
||||||
if valid["tel1"] != nil {
|
if valid["tel1"] != nil {
|
||||||
BindMobile2Store(ctx, utils.Interface2String(valid["tel1"]), storeID)
|
BindMobile2Store(ctx, utils.Interface2String(valid["tel1"]), storeID)
|
||||||
}
|
}
|
||||||
|
if syncStatus&model.SyncFlagStoreAddress != 0 && valid["tel1"] != nil || valid["payeeName"] != nil {
|
||||||
|
updateCourierStores(ctx, storeID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dao.Commit(db)
|
dao.Commit(db)
|
||||||
|
|||||||
@@ -583,7 +583,7 @@ func (p *PurchaseHandler) GetVendorCategories(ctx *jxcontext.Context) (vendorCat
|
|||||||
|
|
||||||
func (p *PurchaseHandler) GetSkus(ctx *jxcontext.Context, skuID int, vendorSkuID, skuName string) (skuNameList []*partner.SkuNameInfo, err error) {
|
func (p *PurchaseHandler) GetSkus(ctx *jxcontext.Context, skuID int, vendorSkuID, skuName string) (skuNameList []*partner.SkuNameInfo, err error) {
|
||||||
param := &jdapi.QuerySkuParam{
|
param := &jdapi.QuerySkuParam{
|
||||||
SkuID: utils.Str2Int64(vendorSkuID),
|
SkuID: utils.Str2Int64WithDefault(vendorSkuID, 0),
|
||||||
SkuName: skuName,
|
SkuName: skuName,
|
||||||
IsFilterDel: jdapi.IsFilterDelTrue,
|
IsFilterDel: jdapi.IsFilterDelTrue,
|
||||||
PageNo: 1,
|
PageNo: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user