diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 8b757c286..d0d5422fe 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -463,7 +463,7 @@ func AddStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendorID if err == nil && vendorID == model.VendorIDJD { db := dao.GetDB() storeDetailList, err2 := dao.GetMissingDadaStores(db, storeID) - if err = err2; err == nil { + if err = err2; err == nil && len(storeDetailList) > 0 { storeDetail := storeDetailList[0] 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), diff --git a/business/model/const.go b/business/model/const.go index ebc2a29b4..9c05932ec 100644 --- a/business/model/const.go +++ b/business/model/const.go @@ -49,6 +49,7 @@ var ( OrderStatusUnknown: "一般事件", + OrderStatusWait4Pay: "待付款", OrderStatusNew: "新订单", OrderStatusAdjust: "调整单", OrderStatusAccepted: "已接单",