| | |
| | | |
| | | use app\common\model\settings\Setting as SettingModel; |
| | | use app\shop\controller\Controller; |
| | | use app\shop\model\branch\Setting as branchSettingModel; |
| | | use app\shop\model\branch\Setting as BranchSettingModel; |
| | | |
| | | /** |
| | | * 连盟设置控制器 |
| | |
| | | public function index() |
| | | { |
| | | $pay_type = $this->pay_type; |
| | | $data = branchSettingModel::getAll(); |
| | | $data = BranchSettingModel::getAll(); |
| | | return $this->renderSuccess('', compact('data', 'pay_type')); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 入会协议设置 |
| | | */ |
| | | public function words() |
| | | { |
| | | $param = $this->postData(); |
| | | $data['words'] = $param; |
| | | return $this->edit($data); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | | public function edit($data) |
| | | { |
| | | $model = new branchSettingModel; |
| | | $model = new BranchSettingModel; |
| | | if ($model->edit($data)) { |
| | | return $this->renderSuccess('更新成功'); |
| | | } |