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
e6b512d3
Commit
e6b512d3
authored
Oct 08, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移入收藏夹功能
parent
15dd1331
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CartService.php
application/models/Business/Cart/CartService.php
+1
-1
Favorites.php
application/models/DAO/Favorites.php
+1
-1
No files found.
application/models/Business/Cart/CartService.php
View file @
e6b512d3
...
...
@@ -550,7 +550,7 @@ class CartServiceModel extends \Business\AbstractModel{
//\DAO\MemberModel::getInstance()->_changeNum(\Our\NameConst::goodsCollection,$memberId,count($cartList));
\Redis\Db1\MemberCenterRedisModel
::
getInstance
()
->
tableHDel
(
$memberId
,
\Our\NameConst
::
goodsCollection
);
$cartDao
->
db
->
doCommit
();
return
fals
e
;
return
tru
e
;
}
/**
...
...
application/models/DAO/Favorites.php
View file @
e6b512d3
...
...
@@ -68,7 +68,7 @@ class FavoritesModel extends \DAO\AbstractModel {
public
function
insertAllOrUpdate
(
$datas
){
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
$error
=
0
;
$baseSql
=
"insert into
{
$this
->
_tableName
}
(member_id,goods_commonid,fav_time,fav_type) values"
;
$baseSql
=
"insert into
{
$this
->
_tableName
}
(member_id,goods_commonid,fav_time,fav_type
,update_time
) values"
;
$insertAllSql
=
$baseSql
;
for
(
$i
=
0
;
$i
<
count
(
$datas
);
$i
++
)
{
$addSql
=
\Our\Common
::
format
(
"(
{
0},{1},{2},{3},{4
}
),"
,
$datas
[
$i
][
'member_id'
],
$datas
[
$i
][
'goods_commonid'
],
time
(),
$datas
[
$i
][
'fav_type'
],
time
());
...
...
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