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
8fc65ccd
Commit
8fc65ccd
authored
Jul 01, 2024
by
fangliyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小区收藏
parent
dd47e3c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
esf_center_api.php
center/controllers/esf_center_api.php
+0
-3
MY_Model.php
esf_core/core/MY_Model.php
+2
-1
user_model.php
esf_core/models/user_model.php
+2
-6
No files found.
center/controllers/esf_center_api.php
View file @
8fc65ccd
...
...
@@ -1290,9 +1290,6 @@ class Esf_center_api extends MY_Controller {
$city
=
$this
->
input
->
get
(
'city'
);
$city
=
$city
?
$city
:
'nj'
;
$result
=
$this
->
user_model
->
getusercollectid
(
$uid
,
$blockid
,
$city
,
$kind
);
if
(
!
empty
(
$_GET
[
'fangliyan'
])){
print_r
(
$result
);
echo
'<br/>'
;
exit
;
}
//已关注此房源
if
(
$result
>
0
)
...
...
esf_core/core/MY_Model.php
View file @
8fc65ccd
...
...
@@ -135,7 +135,8 @@ class MY_Model extends CI_Model
public
function
findAll
()
{
$list
=
array
();
$query
=
$this
->
db
->
get
(
$this
->
form_name
);
$result
=
$query
->
result_array
();
// $result = $query->result_array();
$result
=
$query
->
num_rows
>
0
?
$query
->
result_array
()
:
array
();
$sqls
=
$this
->
db
->
last_query
();
//echo "<!--$sqls-->";
//echo $this->db->last_query();exit;
...
...
esf_core/models/user_model.php
View file @
8fc65ccd
...
...
@@ -847,12 +847,7 @@ class User_model extends MY_Model
}
$return
=
$this
->
get_data
(
array
(
'form_name'
=>
'personal_collection'
,
'where'
=>
$where_string
,
'select'
=>
array
(
'id'
)),
'esf'
);
if
(
!
empty
(
$_GET
[
'fangliyan'
])){
print_r
(
$return
);
echo
'<br/>'
;
if
(
$_GET
[
'fangliyan'
]
==
2
){
exit
;
}
}
writelog
(
':查询用户是否收藏: '
.
print_r
(
$return
,
1
),
'fangliyan_'
.
date
(
'd'
)
);
if
(
!
empty
(
$return
[
0
]))
{
return
$return
[
0
];
...
...
@@ -993,6 +988,7 @@ class User_model extends MY_Model
//取第一个
$one_base_id
=
explode
(
','
,
$base_id
);
$arr
=
array
(
'base_id'
=>
$one_base_id
,
'uid'
=>
$uid
,
'collect_id'
=>
$collect_id
,
'kind'
=>
$kind
,
'collect_value'
=>
$collect_value
,
'collect_time'
=>
time
(),
'city_name'
=>
$city
,
'infofrom'
=>
$infofrom
,
'passport_uid'
=>
$passport_uid
);
writelog
(
':保存收藏addcollect: '
.
print_r
(
$arr
,
1
),
'fangliyan_'
.
date
(
'd'
)
);
//设置表
$this
->
user_model
->
set_table
(
'personal_collection'
);
//过滤表结构
...
...
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