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
e6cd46ac
Commit
e6cd46ac
authored
Apr 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
427e6dfa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
Broker.php
application/api_broker/controller/Broker.php
+7
-0
SquareService.php
application/api_broker/service/SquareService.php
+19
-2
Member.php
application/index/controller/Member.php
+3
-0
No files found.
application/api_broker/controller/Broker.php
View file @
e6cd46ac
...
@@ -377,6 +377,10 @@ class Broker extends Basic
...
@@ -377,6 +377,10 @@ class Broker extends Basic
return
$this
->
response
(
"300"
,
$checkResult
);
return
$this
->
response
(
"300"
,
$checkResult
);
}
}
if
(
$params
[
'agent_id'
]
!==
$this
->
agentId
)
{
return
$this
->
response
(
"101"
,
"失败!"
);
}
$user_id
=
$params
[
'user_id'
];
$user_id
=
$params
[
'user_id'
];
$user_status
=
$params
[
'user_status'
];
$user_status
=
$params
[
'user_status'
];
...
@@ -421,6 +425,9 @@ class Broker extends Basic
...
@@ -421,6 +425,9 @@ class Broker extends Basic
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"300"
,
$checkResult
);
return
$this
->
response
(
"300"
,
$checkResult
);
}
}
if
(
$params
[
'agent_id'
]
!==
$this
->
agentId
)
{
return
$this
->
response
(
"101"
,
"失败!"
);
}
$user_id
=
$params
[
'user_id'
];
$user_id
=
$params
[
'user_id'
];
...
...
application/api_broker/service/SquareService.php
View file @
e6cd46ac
...
@@ -21,8 +21,11 @@ class SquareService
...
@@ -21,8 +21,11 @@ class SquareService
$this
->
redis
=
new
RedisCacheService
();
$this
->
redis
=
new
RedisCacheService
();
}
}
/**
* 文章部门
* @return array
*/
public
function
getDistrictLable
(){
public
function
getDistrictLable
(){
$res
[]
=
[
'id'
=>
0
,
'name'
=>
'全部'
];
$res
[]
=
[
'id'
=>
0
,
'name'
=>
'全部'
];
$res
[]
=
[
'id'
=>
1
,
'name'
=>
'一部'
];
$res
[]
=
[
'id'
=>
1
,
'name'
=>
'一部'
];
$res
[]
=
[
'id'
=>
2
,
'name'
=>
'二部'
];
$res
[]
=
[
'id'
=>
2
,
'name'
=>
'二部'
];
...
@@ -34,10 +37,19 @@ class SquareService
...
@@ -34,10 +37,19 @@ class SquareService
$res
[]
=
[
'id'
=>
8
,
'name'
=>
'八部'
];
$res
[]
=
[
'id'
=>
8
,
'name'
=>
'八部'
];
$res
[]
=
[
'id'
=>
9
,
'name'
=>
'九部'
];
$res
[]
=
[
'id'
=>
9
,
'name'
=>
'九部'
];
$res
[]
=
[
'id'
=>
10
,
'name'
=>
'十部'
];
$res
[]
=
[
'id'
=>
10
,
'name'
=>
'十部'
];
return
$res
;
return
$res
;
}
}
/**
* 新增文章
* @param $agent_id
* @param $title
* @param $content
* @param $cover_img
* @param $site_id
* @param $district_id
* @return bool
*/
public
function
saveSquare
(
$agent_id
,
$title
,
$content
,
$cover_img
,
$site_id
,
$district_id
)
public
function
saveSquare
(
$agent_id
,
$title
,
$content
,
$cover_img
,
$site_id
,
$district_id
)
{
{
$insert
[
"agent_id"
]
=
$agent_id
;
//经纪人id
$insert
[
"agent_id"
]
=
$agent_id
;
//经纪人id
...
@@ -56,6 +68,11 @@ class SquareService
...
@@ -56,6 +68,11 @@ class SquareService
}
}
}
}
/**
* 获取文章
* @param $params
* @return array
*/
public
function
getSquareList
(
$params
){
public
function
getSquareList
(
$params
){
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageNo
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
$pageSize
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
...
...
application/index/controller/Member.php
View file @
e6cd46ac
...
@@ -457,6 +457,9 @@ class Member extends Basic{
...
@@ -457,6 +457,9 @@ class Member extends Basic{
if
(
empty
(
$params
[
'content'
])
||
empty
(
$params
[
'user_id'
]))
{
if
(
empty
(
$params
[
'content'
])
||
empty
(
$params
[
'user_id'
]))
{
return
$this
->
response
(
101
,
$msg
=
'缺少参数'
,
$params
);
return
$this
->
response
(
101
,
$msg
=
'缺少参数'
,
$params
);
}
}
if
(
$params
[
'agent_id'
]
!==
$this
->
userId
)
{
return
$this
->
response
(
"101"
,
"失败!"
);
}
//$params['id'] = '';
//$params['id'] = '';
$params
[
'labels_id'
]
=
0
;
$params
[
'labels_id'
]
=
0
;
...
...
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