Browse Source

fix bug: 类型判断错误

shizhongqi 4 years ago
parent
commit
a075dc35fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      biz/shop/classes/ShopClass.php

+ 1 - 1
biz/shop/classes/ShopClass.php

@@ -123,7 +123,7 @@ class ShopClass extends BaseClass
         $address = $data['address'] ?? '';
         $data['fullAddress'] = $data['city'] . $dist . $address . $floor;
         // 营业时间设置逻辑
-        if ($data['openType'] === 0) { // openType: 0. 表示 24小时营业  1. 表示 xx ~ xx
+        if ($data['openType'] == 0) { // openType: 0. 表示 24小时营业  1. 表示 xx ~ xx
             $data['openStartTime'] = ''; // openStartTime 营业开始时间,空表示24小时
             $data['openEndTime'] = '';
         }