aa
This commit is contained in:
@@ -2,6 +2,7 @@ package cms
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -432,6 +433,12 @@ func OnThingSync(ctx *jxcontext.Context, db *dao.DaoDB, thingMap *model.ThingMap
|
|||||||
err = syncErr
|
err = syncErr
|
||||||
thingMap.Remark = utils.LimitUTF8StringLen(err.Error(), 255)
|
thingMap.Remark = utils.LimitUTF8StringLen(err.Error(), 255)
|
||||||
dao.UpdateEntity(db, thingMap, "Remark")
|
dao.UpdateEntity(db, thingMap, "Remark")
|
||||||
|
|
||||||
|
if thingMap.VendorOrgCode == globals.JdcsOrgCode {
|
||||||
|
if strings.Contains(err.Error(), "店内分类信息不存在") {
|
||||||
|
err = nil
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
updateFields := []string{
|
updateFields := []string{
|
||||||
model.FieldSyncStatus,
|
model.FieldSyncStatus,
|
||||||
|
|||||||
@@ -604,7 +604,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
param["phone"] = phone
|
param["phone"] = phone
|
||||||
param["ivr_phone"] = phone
|
param["ivr_phone"] = phone
|
||||||
param["service_phone"] = storeDetail.Tel1
|
param["service_phone"] = storeDetail.Tel1
|
||||||
param["address"] = params["address"]
|
param["address"] = storeDetail.Address
|
||||||
param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
|
param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
|
||||||
param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)
|
param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)
|
||||||
param["coord_type"] = "amap" //高德坐标系
|
param["coord_type"] = "amap" //高德坐标系
|
||||||
|
|||||||
Reference in New Issue
Block a user