- 门店同步状态区分名称与配送相关的部分,分开同步
This commit is contained in:
@@ -113,14 +113,16 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
||||
}
|
||||
params := map[string]interface{}{
|
||||
"name": utils.Interface2String(remoteStoreInfo["name"]), //jxutils.ComposeStoreName(storeDetail.Store.Name, model.VendorIDMTWM),
|
||||
"address": storeDetail.Address,
|
||||
"longitude": jxutils.IntCoordinate2Standard(storeDetail.Lng),
|
||||
"latitude": jxutils.IntCoordinate2Standard(storeDetail.Lat),
|
||||
"phone": storeDetail.Tel1,
|
||||
"shipping_fee": jxutils.IntPrice2Standard(int64(storeDetail.DeliveryFee)),
|
||||
"shipping_time": openTimeJX2Mtwm(openTime),
|
||||
"third_tag_name": "蔬菜",
|
||||
}
|
||||
if storeDetail.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreAddress) != 0 {
|
||||
params["address"] = storeDetail.Address
|
||||
params["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
|
||||
params["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)
|
||||
}
|
||||
params["open_level"], params["is_online"] = bizStatusJX2Mtwm(jxutils.MergeStoreStatus(storeDetail.Status, storeDetail.VendorStatus))
|
||||
globals.SugarLogger.Debug(utils.Format4Output(params, false))
|
||||
if globals.EnableStoreWrite && globals.EnableMtwmStoreWrite {
|
||||
|
||||
Reference in New Issue
Block a user