courierstore status
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user