Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
0191fac1
Commit
0191fac1
authored
Dec 12, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit 修改报错等级 增加分页配置
parent
8dde48ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
config.php
application/api/config.php
+4
-2
Broker.php
application/api/controller/Broker.php
+6
-1
route.php
application/route.php
+2
-2
No files found.
application/api/config.php
View file @
0191fac1
<?php
<?php
//配置文件
//配置文件
error_reporting
(
E_ERROR
|
E_PARSE
);
define
(
'IMG_PATH'
,
'https://admin.tonglianjituan.com/houseImg/'
);
define
(
'IMG_PATH'
,
'https://admin.tonglianjituan.com/houseImg/'
);
define
(
'PAGESIZE'
,
15
);
return
[
return
[
'jwt_key'
=>
'tonglian+123'
'jwt_key'
=>
'tonglian+123'
,
];
];
\ No newline at end of file
application/api/controller/Broker.php
View file @
0191fac1
...
@@ -27,7 +27,7 @@ class Broker extends Basic{
...
@@ -27,7 +27,7 @@ class Broker extends Basic{
if
(
$params
[
'house_id'
])
{
if
(
$params
[
'house_id'
])
{
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
PAGESIZE
:
$params
[
'pageSize'
];
$agents
=
new
Agents
();
$agents
=
new
Agents
();
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
...
@@ -40,6 +40,11 @@ class Broker extends Basic{
...
@@ -40,6 +40,11 @@ class Broker extends Basic{
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]
);
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]
);
}
}
/**
* 评价经纪人
*
* @return type
*/
public
function
appraiser
()
{
public
function
appraiser
()
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$data
[
'status'
]
=
101
;
$data
[
'status'
]
=
101
;
...
...
application/route.php
View file @
0191fac1
...
@@ -50,9 +50,9 @@ Route::group('api',[
...
@@ -50,9 +50,9 @@ Route::group('api',[
'index'
=>
[
'api/member/index'
,
[
'method'
=>
'get'
]],
'index'
=>
[
'api/member/index'
,
[
'method'
=>
'get'
]],
//get broker
//get broker
'getBroker'
=>
[
'api/broker/index'
,[
'method'
=>
'get'
]],
'getBroker'
=>
[
'api/broker/index'
,[
'method'
=>
'get'
]],
//获取当前商铺或街铺的经纪人
//post broker
//post broker
'appraiser'
=>
[
'api/broker/appraiser'
,[
'method'
=>
'post'
]],
'appraiser'
=>
[
'api/broker/appraiser'
,[
'method'
=>
'post'
]],
//评价经纪人
//post member
//post member
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment