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
60c2080c
Commit
60c2080c
authored
Jun 28, 2024
by
fangliyan
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'subscribe2.0' 到 'release'
线上问题跟踪 查看合并请求
!34
parents
99be487c
942689e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
esf_center_api.php
center/controllers/esf_center_api.php
+11
-12
No files found.
center/controllers/esf_center_api.php
View file @
60c2080c
...
...
@@ -127,17 +127,15 @@ class Esf_center_api extends MY_Controller {
$city
=
$this
->
input
->
get
(
'city'
);
$city
=
$city
?
$city
:
'nj'
;
$tbl
=
$kind
==
3
?
'sell'
:
'rent'
;
$result
=
$this
->
user_model
->
getusercollectid
(
$uid
,
$rowid
,
$city
);
if
(
isset
(
$_GET
[
'fangliyan'
])
&&
$_GET
[
'fangliyan'
]
==
1
){
echo
'是否已收藏:'
;
print_r
(
$result
);
exit
;
if
(
$uid
){
$result
=
$this
->
user_model
->
getusercollectid
(
$uid
,
$rowid
,
$city
);
//已关注此房源
if
(
$result
[
'id'
]
>
0
)
{
$return
=
'N_COL'
;
}
}
//已关注此房源
if
(
$result
[
'id'
]
>
0
)
{
$return
=
'N_COL'
;
}
if
(
$tbl
==
'sell'
){
$houseinfo
=
$this
->
house_model
->
get_data
(
array
(
'form_name'
=>
$tbl
,
'where'
=>
array
(
'id'
=>
$rowid
,
'esta'
=>
'1'
),
'select'
=>
array
(
'infotype'
,
'infofrom'
,
'id'
,
'district'
,
'address'
,
'streetid'
,
'blockshowname'
,
'room'
,
'hall'
,
'buildarea'
,
'forward'
,
'fitment'
,
'buildyear'
,
'floor'
,
'totalfloor'
,
'subfloor'
,
'price'
,
'uid'
,
'telno'
,
'pic1'
,
'contactor'
,
'uid'
,
'averprice'
),
'limit'
=>
1
),
'esfhousebak'
);
}
else
{
...
...
@@ -973,8 +971,9 @@ class Esf_center_api extends MY_Controller {
public
function
api_getsaveblock
()
{
$telno
=
$this
->
input
->
get
(
'telno'
);
$base_id
=
$this
->
input
->
get
(
'base_id'
);
if
(
!
$base_id
)
$uid
=
$this
->
user_model
->
yztelno
(
$telno
);
if
(
$uid
==
0
)
{
echo
serialize
(
array
());
exit
;
}
...
...
@@ -986,8 +985,8 @@ class Esf_center_api extends MY_Controller {
$page
=
$page
?
$page
:
1
;
$pagesize
=
$pagesize
?
$pagesize
:
20
;
$offset
=
$pagesize
*
(
$page
-
1
);
$collect_array
=
$this
->
user_model
->
getcollectByBaseId
(
$kind
,
$base_id
,
$offset
,
$pagesize
,
$city
);
$collect_array
=
$this
->
user_model
->
getcollect
(
$kind
,
$uid
,
$offset
,
$pagesize
,
$city
);
if
(
!
empty
(
$collect_array
)
&&
is_array
(
$collect_array
))
{
foreach
(
$collect_array
as
$key
=>
$value
)
...
...
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