aa
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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" //高德坐标系
|
||||
|
||||
Reference in New Issue
Block a user