京东门店电话同步

This commit is contained in:
苏尹岚
2020-05-18 11:07:42 +08:00
parent bbc9d030ba
commit 457dd5e76d
2 changed files with 6 additions and 5 deletions

View File

@@ -41,6 +41,10 @@ var (
}
)
const (
JdTe1 = "18011597879"
)
func (p *PurchaseHandler) ReadStore(ctx *jxcontext.Context, vendorOrgCode, vendorStoreID string) (*dao.StoreDetail, error) {
a := getAPI(vendorOrgCode)
result, err := a.GetStoreInfoByStationNo2(vendorStoreID)
@@ -141,8 +145,8 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
storeParams := &jdapi.OpStoreParams{
StationNo: store.VendorStoreID,
Operator: userName,
Phone: store.Tel1,
Mobile: store.Tel2,
Phone: JdTe1,
Mobile: store.Tel1,
}
if store.SyncStatus&model.SyncFlagDeletedMask == 0 {
storeParams.OutSystemID = utils.Int2Str(int(store.ID))