aa
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (vendorStoreID string, status int, err error) {
|
||||
err = api.FnAPI.CreateStore(&fnpsapi.CreateStoreParam{
|
||||
ChainStoreCode: utils.Int2Str(storeDetail.ID),
|
||||
ChainStoreName: storeDetail.Name,
|
||||
ChainStoreName: globals.StoreName + "-" + storeDetail.Name,
|
||||
ContactPhone: storeDetail.Tel1,
|
||||
Address: storeDetail.Address,
|
||||
PositionSource: 3,
|
||||
@@ -40,7 +40,7 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt
|
||||
if err == nil {
|
||||
storeDetail = &dao.StoreDetail2{
|
||||
Store: model.Store{
|
||||
Name: globals.StoreName + "-" + shopInfo.ChainStoreName,
|
||||
Name: shopInfo.ChainStoreName,
|
||||
Tel1: shopInfo.ContactPhone,
|
||||
Address: shopInfo.Address,
|
||||
Lng: jxutils.StandardCoordinate2Int(utils.Str2Float64(shopInfo.Longitude)),
|
||||
@@ -65,7 +65,7 @@ func (c *DeliveryHandler) IsErrStoreNotExist(err error) bool {
|
||||
func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (err error) {
|
||||
err = api.FnAPI.UpdateStore(&fnpsapi.CreateStoreParam{
|
||||
ChainStoreCode: utils.Int2Str(storeDetail.ID),
|
||||
ChainStoreName: storeDetail.Name,
|
||||
ChainStoreName: globals.StoreName + "-" + storeDetail.Name,
|
||||
ContactPhone: storeDetail.Tel1,
|
||||
Address: storeDetail.Address,
|
||||
PositionSource: 3,
|
||||
|
||||
Reference in New Issue
Block a user