Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
47b30e8d
Commit
47b30e8d
authored
Oct 22, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
店铺扫码关注个问题
parent
5395eb15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
FavoritesStore.php
application/models/DAO/FavoritesStore.php
+1
-1
No files found.
application/models/DAO/FavoritesStore.php
View file @
47b30e8d
...
@@ -124,7 +124,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
...
@@ -124,7 +124,7 @@ class FavoritesStoreModel extends \DAO\AbstractModel {
$insertAllSql
.=
$addSql
;
$insertAllSql
.=
$addSql
;
if
(
$i
%
1000
==
0
&&
$i
!=
0
)
{
if
(
$i
%
1000
==
0
&&
$i
!=
0
)
{
$insertAllSql
=
rtrim
(
$insertAllSql
,
','
);
$insertAllSql
=
rtrim
(
$insertAllSql
,
','
);
$insertAllSql
.=
'ON DUPLICATE KEY UPDATE fav_time=VALUES (fav_time)'
;
$insertAllSql
.=
'ON DUPLICATE KEY UPDATE fav_time=VALUES (fav_time)
,fav_from = VALUES (fav_from)
'
;
$one
=
$this
->
db
->
insert
(
$this
->
_tableName
)
->
query
(
$insertAllSql
);
$one
=
$this
->
db
->
insert
(
$this
->
_tableName
)
->
query
(
$insertAllSql
);
if
(
!
$one
)
{
if
(
!
$one
)
{
$error
++
;
$error
++
;
...
...
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