|
|
|
@ -132,7 +132,7 @@ class Merchant extends Controller |
|
|
|
|
public function setPageStyle(): Json |
|
|
|
|
{ |
|
|
|
|
$model = new StyleModel; |
|
|
|
|
$detail = StyleModel::detail(1); |
|
|
|
|
$detail = StyleModel::detail(1, $this->storeId); |
|
|
|
|
$data = $this->postForm(); |
|
|
|
|
if (empty($detail)) { |
|
|
|
|
if ($model->add($data)) { |
|
|
|
@ -150,7 +150,7 @@ class Merchant extends Controller |
|
|
|
|
public function getPageStyle(): Json |
|
|
|
|
{ |
|
|
|
|
// 新增记录 |
|
|
|
|
$detail = StyleModel::detail(1); |
|
|
|
|
$detail = StyleModel::detail(1, $this->storeId); |
|
|
|
|
return $this->renderSuccess(compact('detail')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|