|
|
@@ -307,7 +307,15 @@ class CustomController extends BaseController
|
|
|
if (!empty($shop)) {
|
|
|
$ghsShopId = $this->shopId;
|
|
|
$hdShopId = $shop->id;
|
|
|
- CustomClass::build($ghsShopId, $hdShopId);
|
|
|
+ $custom = CustomClass::build($ghsShopId, $hdShopId);
|
|
|
+ $customId = $custom['id'] ?? 0;
|
|
|
+ $custom = CustomClass::getById($customId, true);
|
|
|
+ if (!empty($custom)) {
|
|
|
+ $custom->name = $name;
|
|
|
+ $py = stringUtil::py($name);
|
|
|
+ $custom->py = $py;
|
|
|
+ $custom->save();
|
|
|
+ }
|
|
|
util::complete($shop->merchantName . ' 添加成功');
|
|
|
}
|
|
|
util::fail($mobile . "手机号已经添加过了");
|