courierstore status
This commit is contained in:
@@ -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