This commit is contained in:
苏尹岚
2021-02-05 10:58:21 +08:00
parent 9b1ccb8ec8
commit 485330a942
2 changed files with 8 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ package cms
import (
"fmt"
"strings"
"time"
"git.rosy.net.cn/baseapi/utils"
@@ -432,6 +433,12 @@ func OnThingSync(ctx *jxcontext.Context, db *dao.DaoDB, thingMap *model.ThingMap
err = syncErr
thingMap.Remark = utils.LimitUTF8StringLen(err.Error(), 255)
dao.UpdateEntity(db, thingMap, "Remark")
if thingMap.VendorOrgCode == globals.JdcsOrgCode {
if strings.Contains(err.Error(), "店内分类信息不存在") {
err = nil
}
}
} else {
updateFields := []string{
model.FieldSyncStatus,

View File

@@ -604,7 +604,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
param["phone"] = phone
param["ivr_phone"] = phone
param["service_phone"] = storeDetail.Tel1
param["address"] = params["address"]
param["address"] = storeDetail.Address
param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)
param["coord_type"] = "amap" //高德坐标系