where('is_del', 0); } /* * 获取门店信息 * @param int $id * */ public static function getStoreDispose($id = 0, $felid = '') { if ($id) $storeInfo = self::verificWhere()->where('id', $id)->find(); else $storeInfo = self::verificWhere()->find(); if ($storeInfo) { $storeInfo['latlng'] = self::getLatlngAttr(null, $storeInfo); $storeInfo['valid_time'] = $storeInfo['valid_time'] ? explode(' - ', $storeInfo['valid_time']) : []; $storeInfo['_valid_time'] = str_replace('-', '/', ($storeInfo['valid_time'][0] ?? '') . ' ~ ' . ($storeInfo['valid_time'][1] ?? "")); $storeInfo['day_time'] = $storeInfo['day_time'] ? str_replace(' - ', ' ~ ', $storeInfo['day_time']) : []; $storeInfo['_detailed_address'] = $storeInfo['address'] . ' ' . $storeInfo['detailed_address']; $storeInfo['address'] = $storeInfo['address'] ? explode(',', $storeInfo['address']) : []; if ($felid) return $storeInfo[$felid] ?? ''; } return $storeInfo; } }