From 052170c1cb60676a152d53479abc13b1fc0afbed Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 24 Jan 2019 21:41:09 +0800 Subject: [PATCH] - create dada store as BusinessTypeConvStore --- business/jxstore/cms/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 4ffe0244c..8b757c286 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -465,7 +465,7 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID storeDetailList, err2 := dao.GetMissingDadaStores(db, storeID) if err = err2; err == nil { storeDetail := storeDetailList[0] - if _, err = api.DadaAPI.ShopAdd(utils.Int2Str(storeID), storeDetail.Name, dadaapi.BusinessTypeFruitVegetable, storeDetail.CityName, + if _, err = api.DadaAPI.ShopAdd(utils.Int2Str(storeID), storeDetail.Name, dadaapi.BusinessTypeConvStore, storeDetail.CityName, storeDetail.DistrictName, storeDetail.Address, jxutils.IntCoordinate2Standard(storeDetail.Lng), jxutils.IntCoordinate2Standard(storeDetail.Lat), storeDetail.Tel1, storeDetail.Tel1, nil); err == nil { _, err = AddStoreCourierMap(ctx, db, storeDetail.ID, model.VendorIDDada, &model.StoreCourierMap{ @@ -726,7 +726,7 @@ func RefreshMissingDadaStores(ctx *jxcontext.Context, isAsync, isContinueWhenErr _, err = api.DadaAPI.ShopDetail(utils.Int2Str(storeDetail.ID)) if err != nil { if codeErr, ok := err.(*utils.ErrorWithCode); ok && codeErr.IntCode() == dadaapi.ResponseCodeShopNotExist { - _, err = api.DadaAPI.ShopAdd(utils.Int2Str(storeDetail.ID), storeDetail.Name, dadaapi.BusinessTypeFruitVegetable, storeDetail.CityName, + _, err = api.DadaAPI.ShopAdd(utils.Int2Str(storeDetail.ID), storeDetail.Name, dadaapi.BusinessTypeConvStore, storeDetail.CityName, storeDetail.DistrictName, storeDetail.Address, jxutils.IntCoordinate2Standard(storeDetail.Lng), jxutils.IntCoordinate2Standard(storeDetail.Lat), storeDetail.Tel1, storeDetail.Tel1, nil) }