courierstore status

This commit is contained in:
gazebo
2020-02-09 12:03:04 +08:00
parent c42bb64998
commit f73a97fc6b
2 changed files with 6 additions and 1 deletions

View File

@@ -1432,7 +1432,7 @@ func OrderProfitWarning(order *model.GoodsOrder) {
func (s *DefScheduler) notifyOrderStakeHolder(order *model.GoodsOrder, msgTitle, msgContent string) (err error) {
userMobiles := []string{
"18180948107",
// "18180948107",
}
db := dao.GetDB()
storeDetail, err := dao.GetStoreDetail(db, jxutils.GetSaleStoreIDFromOrder(order), order.VendorID)

View File

@@ -136,6 +136,11 @@ func StoreDetail2ShopInfo(storeDetail *dao.StoreDetail2) (shopInfo *dadaapi.Shop
ContactName: storeDetail.PayeeName,
Phone: storeDetail.Tel1,
}
if storeDetail.CourierStatus >= model.StoreStatusClosed {
shopInfo.Status = dadaapi.ShopStatusOnline
} else {
shopInfo.Status = dadaapi.ShopStatusOffline
}
return shopInfo
}