shish 1 year ago
parent
commit
4fb0f2b2b0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      biz/shop/classes/ShopClass.php

+ 4 - 2
biz/shop/classes/ShopClass.php

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