|
|
@@ -43,9 +43,10 @@ class CustomController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$showSold = $get['showSold'] ?? 0;
|
|
|
- $mainId = $this->mainId;
|
|
|
- CustomClass::updateByCondition(['ownMainId' => $mainId], ['showSold' => $showSold]);
|
|
|
- \bizGhs\ghs\classes\GhsClass::updateByCondition(['mainId' => $mainId], ['showSold' => $showSold]);
|
|
|
+ $shop = $this->shop;
|
|
|
+ //没有配置到每个客户,只在总店有控制
|
|
|
+ $shop->showSold = $showSold;
|
|
|
+ $shop->save();
|
|
|
util::complete('设置成功');
|
|
|
}
|
|
|
|