|
|
@@ -6,6 +6,7 @@ use bizGhs\product\classes\ProductClass;
|
|
|
use common\components\dirUtil;
|
|
|
use common\components\httpUtil;
|
|
|
use common\components\qrCodeUtil;
|
|
|
+use common\components\stringUtil;
|
|
|
use common\components\util;
|
|
|
use common\components\wxUtil;
|
|
|
use Yii;
|
|
|
@@ -76,6 +77,9 @@ class ShopClass extends BaseClass
|
|
|
public static function updateShop($id, $data)
|
|
|
{
|
|
|
$shopName = isset($data['shopName']) ? $data['shopName'] : '';
|
|
|
+ if (stringUtil::getWordNum($shopName) > 8) {
|
|
|
+ util::fail('门店名称不能超过8个汉字');
|
|
|
+ }
|
|
|
$sjId = $data['sjId'];
|
|
|
$findShop = self::getByCondition(['sjId' => $sjId, 'shopName' => $shopName]);
|
|
|
if (!empty($findShop) && $findShop['id'] != $id) {
|