1
This commit is contained in:
@@ -34,12 +34,13 @@ func getAuditStatus(vendorAuditStatus int) int {
|
||||
}
|
||||
|
||||
func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (vendorStoreID string, status int, err error) {
|
||||
globals.SugarLogger.Debug("蜂鸟门店创建")
|
||||
// 获取品牌名称
|
||||
brandInfo, err := dao.GetBrands(dao.GetDB(), "", storeDetail.BrandID, "", false, "")
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debug("蜂鸟门店创建--1", err)
|
||||
return "", 0, err
|
||||
}
|
||||
|
||||
createStore := &fnpsapi.CreateStoreBaseInfo{
|
||||
ContactPhone: storeDetail.Tel1,
|
||||
Address: storeDetail.Address,
|
||||
@@ -61,6 +62,7 @@ func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.S
|
||||
|
||||
fnShopId, err := api.FnAPI.CreateStore(createStore)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debug("蜂鸟门店创建--2", err)
|
||||
return "", 0, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user