|
|
@@ -32,6 +32,9 @@ class GhsController extends BaseController
|
|
|
if (empty($name)) {
|
|
|
util::fail('请填写名称');
|
|
|
}
|
|
|
+ if (stringUtil::getWordNum($name) > 27) {
|
|
|
+ util::fail('名称不能超过27个汉字');
|
|
|
+ }
|
|
|
$ghs->name = $name;
|
|
|
$ghs->save();
|
|
|
util::complete('修改成功');
|
|
|
@@ -50,7 +53,6 @@ class GhsController extends BaseController
|
|
|
if (stringUtil::getWordNum($name) > 27) {
|
|
|
util::fail('名称不能超过27个汉字');
|
|
|
}
|
|
|
-
|
|
|
$hasGhsList = GhsClass::getAllByCondition(['ownShopId' => $this->shopId], null, '*', null, true);
|
|
|
if (!empty($hasGhsList)) {
|
|
|
foreach ($hasGhsList as $hasGhs) {
|