|
|
@@ -25,10 +25,6 @@ class ShopClass extends BaseClass
|
|
|
//商家是否有同城配送能力
|
|
|
public static function hasIntraCity($shop)
|
|
|
{
|
|
|
- //万丽花行 跑腿不算运费
|
|
|
- if ($shop->id == 12003) {
|
|
|
- return ['openIntraCity' => 0, 'wxStoreId' => ''];
|
|
|
- }
|
|
|
$mainId = $shop->mainId ?? 0;
|
|
|
$main = MainClass::getById($mainId, true);
|
|
|
$wxStoreId = $main->wxStoreId ?? '';
|
|
|
@@ -36,16 +32,13 @@ class ShopClass extends BaseClass
|
|
|
$long = $shop->long ?? '';
|
|
|
$address = $shop->address ?? '';
|
|
|
$hasMap = dict::getDict('hasMap');
|
|
|
- if (getenv('YII_ENV') == 'production') {
|
|
|
- $openIntraCityMainList = [50, 58668, 24162];
|
|
|
- } else {
|
|
|
- $openIntraCityMainList = [644];
|
|
|
- }
|
|
|
+ $shopId = $shop->id;
|
|
|
+ $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true, null, 'id,shopId,thirdSendFeeZd');
|
|
|
$openIntraCity = 0;
|
|
|
//有地图功能
|
|
|
if ($hasMap == 1) {
|
|
|
//有地址功能,并且叫跑腿功能开启
|
|
|
- if (in_array($mainId, $openIntraCityMainList)) {
|
|
|
+ if ($ext->thirdSendFeeZd == 1) {
|
|
|
if (!empty($lat) && !empty($long) && !empty($address)) {
|
|
|
if (!empty($wxStoreId)) {
|
|
|
$openIntraCity = 1;
|