123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace addons\shopro\controller\data;
- use addons\shopro\controller\Common;
- use think\Db;
- /**
- * 快递公司
- */
- class Express extends Common
- {
- protected $noNeedLogin = ['index'];
- protected $noNeedRight = ['*'];
- /**
- * 查看
- *
- * @return string|Json
- * @throws \think\Exception
- * @throws DbException
- */
- public function index()
- {
- $keyword = input('keyword','');
- $map = [];
- if(!empty($keyword)){
- $map['name'] = ['LIKE','%'.$keyword.'%'];
- }
- $model = new \app\admin\model\shopro\data\Express;
- $list = $model->sheepFilter()->where($map)->select();
- $this->success(1, $list);
- }
- }
|