quanwei
2 days ago 73b874c72ad55eb9eef21c36160ac0de58f0189e
admin/app/shop/controller/branch/Setting.php
@@ -5,7 +5,7 @@
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;
/**
 * 连盟设置控制器
@@ -31,7 +31,7 @@
    public function index()
    {
        $pay_type = $this->pay_type;
        $data = branchSettingModel::getAll();
        $data = BranchSettingModel::getAll();
        return $this->renderSuccess('', compact('data', 'pay_type'));
    }
@@ -56,11 +56,21 @@
    }
    /**
     * 入会协议设置
     */
    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('更新成功');
        }