Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
U
User
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
zhangjun
User
Commits
1a59468d
Commit
1a59468d
authored
Jun 25, 2024
by
fangliyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base_id 取消收藏
parent
1b340737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
esf_center_api.php
center/controllers/esf_center_api.php
+39
-0
No files found.
center/controllers/esf_center_api.php
View file @
1a59468d
...
...
@@ -861,6 +861,45 @@ class Esf_center_api extends MY_Controller {
echo
serialize
(
$return_array
);
}
/**
* 根据用户中心base_id取消关注房源操作接口
* @author cxf
*/
public
function
api_cancel_focus_by_baseId
()
{
$base_id
=
$this
->
input
->
get
(
'base_id'
);
$kind
=
$this
->
input
->
get
(
'kind'
);
$rowid
=
$this
->
input
->
get
(
'rowid'
);
$city
=
$this
->
input
->
get
(
'city'
);
$tbl
=
$kind
==
3
?
'sell'
:
'rent'
;
$id
=
$this
->
user_model
->
getCollectHouseIdByBaseID
(
$base_id
,
$kind
,
$rowid
,
$city
);
if
(
$id
==
0
)
{
$return
=
'N_COL'
;
}
else
{
$return
=
$this
->
user_model
->
delcollect
(
$id
);
}
if
(
$return
==
'N_COL'
){
//$result = 2;
//$msg = '无此收藏';
$result
=
1
;
$msg
=
'删除成功'
;
}
elseif
(
$return
==
'N_USER'
){
$result
=
3
;
$msg
=
'无此用户'
;
}
elseif
(
$return
>
0
){
$result
=
1
;
$msg
=
'删除成功'
;
}
elseif
(
$return
==
0
){
$result
=
0
;
$msg
=
'取消失败'
;
}
$return_array
=
array
(
'result'
=>
$result
,
'msg'
=>
$msg
);
echo
serialize
(
$return_array
);
}
/**
...
...
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