|
|
@@ -152,6 +152,8 @@ class ShopClass extends BaseClass
|
|
|
$sjName = $shop['merchantName'] ?? '';
|
|
|
//默认门店只显示商家名称即可
|
|
|
$name = $default == 1 && $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
|
|
|
+ $needCheck = isset($data['needCheck']) ? $data['needCheck'] : 0;
|
|
|
+ $passStatus = $needCheck == 1 ? 0 : 1;
|
|
|
$shopUpdate = [
|
|
|
'name' => $name,
|
|
|
'mobile' => $data['mobile'] ?? '',
|
|
|
@@ -164,18 +166,18 @@ class ShopClass extends BaseClass
|
|
|
'showAddress' => $data['showAddress'] ?? '',
|
|
|
'lat' => $data['lat'] ?? '',
|
|
|
'long' => $data['long'] ?? '',
|
|
|
+ 'passStatus' => $passStatus,
|
|
|
];
|
|
|
$where = ['sjId' => $sjId, 'shopId' => $id];
|
|
|
if ($ptStyle == dict::getDict('ptStyle', 'hd')) {
|
|
|
//不能更新 ssh 20240821
|
|
|
- //CustomClass::updateByCondition($where, $shopUpdate);
|
|
|
+ CustomClass::updateByCondition($where, ['passStatus' => $passStatus]);
|
|
|
} elseif ($ptStyle == dict::getDict('ptStyle', 'ghs')) {
|
|
|
GhsClass::updateByCondition($where, $shopUpdate);
|
|
|
}
|
|
|
return $respond;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//取商家所有门店 ssh 2020.2.29
|
|
|
public static function getAllShop($sjId)
|
|
|
{
|