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
f61534f9
Commit
f61534f9
authored
Jul 01, 2024
by
fangliyan
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'subscribe2.0' 到 'release'
Subscribe2.0 查看合并请求
!39
parents
b7f2a287
8fc65ccd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
MY_Model.php
esf_core/core/MY_Model.php
+2
-1
user_model.php
esf_core/models/user_model.php
+2
-4
No files found.
esf_core/core/MY_Model.php
View file @
f61534f9
...
...
@@ -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 @
f61534f9
...
...
@@ -845,12 +845,9 @@ class User_model extends MY_Model
if
(
$kind
){
$where_string
.=
" and kind =
$kind
"
;
}
if
(
!
empty
(
$_GET
[
'fangliyan'
])){
print_r
(
$where_string
);
exit
;
}
$return
=
$this
->
get_data
(
array
(
'form_name'
=>
'personal_collection'
,
'where'
=>
$where_string
,
'select'
=>
array
(
'id'
)),
'esf'
);
writelog
(
':查询用户是否收藏: '
.
print_r
(
$return
,
1
),
'fangliyan_'
.
date
(
'd'
)
);
if
(
!
empty
(
$return
[
0
]))
{
return
$return
[
0
];
...
...
@@ -991,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