a
This commit is contained in:
@@ -1639,11 +1639,12 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
if strings.Contains(storeName, " ") {
|
if strings.Contains(storeName, " ") {
|
||||||
storeName = storeName[0:strings.Index(storeName, " ")] + storeName[strings.Index(storeName, " ")+1:len(storeName)]
|
storeName = storeName[0:strings.Index(storeName, " ")] + storeName[strings.Index(storeName, " ")+1:len(storeName)]
|
||||||
}
|
}
|
||||||
|
storeName = "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店"
|
||||||
if len(storeName) > 30 {
|
if len(storeName) > 30 {
|
||||||
storeName = storeName[:30]
|
storeName = storeName[:30]
|
||||||
}
|
}
|
||||||
param := &jdshopapi.UpdateBasicParam{
|
param := &jdshopapi.UpdateBasicParam{
|
||||||
StoreName: "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店",
|
StoreName: storeName,
|
||||||
CategoryID2: 4,
|
CategoryID2: 4,
|
||||||
Coordinate: utils.Float64ToStr(jxutils.IntCoordinate2Standard(store.Lat)) + "," + utils.Float64ToStr(jxutils.IntCoordinate2Standard(store.Lng)),
|
Coordinate: utils.Float64ToStr(jxutils.IntCoordinate2Standard(store.Lat)) + "," + utils.Float64ToStr(jxutils.IntCoordinate2Standard(store.Lng)),
|
||||||
BussinessBeginTime: int2TimeStr(int(store.OpenTime1)),
|
BussinessBeginTime: int2TimeStr(int(store.OpenTime1)),
|
||||||
|
|||||||
Reference in New Issue
Block a user