|
@@ -96,11 +96,14 @@ class ShopController extends Curd
|
|
|
{
|
|
|
foreach ($items as &$item) {
|
|
|
$item->shop_logo = getenv('STORAGE_DOMAIN').$item->shop_logo;
|
|
|
+ $item->timeFormat = '';
|
|
|
if (!empty($item->shop_business_hours)){
|
|
|
$shopBusinessHoursArr = explode('~', $item->shop_business_hours);
|
|
|
foreach ($shopBusinessHoursArr as $key => $v){
|
|
|
+ $item->timeFormat .= $v.'~';
|
|
|
$shopBusinessHoursArr[$key] = date("Y-m-d\TH:i:s\Z",strtotime(date('Y-m-d ').$v)-8*3600);
|
|
|
}
|
|
|
+ $item->timeFormat = rtrim($item->timeFormat,'~');
|
|
|
$item->shop_business_hours = $shopBusinessHoursArr;
|
|
|
}
|
|
|
|