Commit 0191fac1 authored by hujun's avatar hujun

edit 修改报错等级 增加分页配置

parent 8dde48ff
<?php
//配置文件
error_reporting(E_ERROR | E_PARSE);
define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
define('PAGESIZE', 15);
return [
'jwt_key' => 'tonglian+123'
'jwt_key' => 'tonglian+123',
];
\ No newline at end of file
......@@ -27,7 +27,7 @@ class Broker extends Basic{
if ($params['house_id']) {
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$pageSize = empty($params['pageSize']) ? PAGESIZE : $params['pageSize'];
$agents = new Agents();
$data['msg'] = '';
......@@ -40,6 +40,11 @@ class Broker extends Basic{
return $this->response($data['status'], $data['msg'], $data['data'] );
}
/**
* 评价经纪人
*
* @return type
*/
public function appraiser() {
$params = $this->params;
$data['status'] = 101;
......
......@@ -50,9 +50,9 @@ Route::group('api',[
'index' => ['api/member/index', ['method' => 'get']],
//get broker
'getBroker'=> ['api/broker/index',['method'=>'get']],
'getBroker'=> ['api/broker/index',['method'=>'get']], //获取当前商铺或街铺的经纪人
//post broker
'appraiser'=> ['api/broker/appraiser',['method'=>'post']],
'appraiser'=> ['api/broker/appraiser',['method'=>'post']], //评价经纪人
//post member
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment