success('请求成功'); } /** * 获取客户信息 * * @ApiMethod GET * */ public function getCustom(){ if (Request::instance()->isGet() == false){ $this->error('非法请求'); } $field = '客户编号,客户名称'; $list = Db::name('产品_基本资料')->distinct(true)->field($field)->order('客户编号 asc')->select(); $this->success('请求成功',$list); } }