quanwei
2026-01-17 e1e2fe5710a5b5cd9c19bd3aa99c998a1a613ca8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
 
namespace app\supplier\controller\setting;
 
use app\supplier\controller\Controller;
use app\supplier\model\settings\Setting as SettingModel;
 
/**
 * 满额包邮控制器
 */
class Fullfree extends Controller
{
    /**
     *商品推荐
     */
    public function index()
    {
        $key = 'full_free';
        if($this->request->isGet()){
            $vars['values'] = SettingModel::getSupplierItem($key, $this->getSupplierId());
            return $this->renderSuccess('', compact('vars'));
        }
        $model = new SettingModel;
        if ($model->edit($key, $this->postData(),$this->getSupplierId())) {
            return $this->renderSuccess('操作成功');
        }
    }
 
}