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
c2366225
Commit
c2366225
authored
Jan 11, 2019
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券相关
parent
8293c24f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
MemberCoupon.php
application/models/DAO/Coupon/MemberCoupon.php
+1
-0
Abstract.php
application/models/Redis/Db13/Abstract.php
+0
-3
No files found.
application/models/DAO/Coupon/MemberCoupon.php
View file @
c2366225
...
@@ -68,6 +68,7 @@ class MemberCouponModel extends \DAO\AbstractModel{
...
@@ -68,6 +68,7 @@ class MemberCouponModel extends \DAO\AbstractModel{
$memberCouponRedisModel
=
\Redis\Db13\MemberCouponRedisModel
::
getInstance
();
$memberCouponRedisModel
=
\Redis\Db13\MemberCouponRedisModel
::
getInstance
();
$memberCoupons
=
$memberCouponRedisModel
->
tableCacheGet
(
\Our\NameConst
::
memberCounponListPrefix
.
$memberId
);
$memberCoupons
=
$memberCouponRedisModel
->
tableCacheGet
(
\Our\NameConst
::
memberCounponListPrefix
.
$memberId
);
if
(
$memberCoupons
){
if
(
$memberCoupons
){
$memberCoupons
=
unserialize
(
$memberCoupons
);
$newMemberCouponArray
=
array
();
$newMemberCouponArray
=
array
();
foreach
(
$memberCoupons
as
$tempMemberCoupon
){
foreach
(
$memberCoupons
as
$tempMemberCoupon
){
if
(
$tempMemberCoupon
[
'out_time'
]
>=
TIMESTAMP
){
if
(
$tempMemberCoupon
[
'out_time'
]
>=
TIMESTAMP
){
...
...
application/models/Redis/Db13/Abstract.php
View file @
c2366225
...
@@ -25,9 +25,6 @@ class AbstractModel extends \Redis\AbstractModel {
...
@@ -25,9 +25,6 @@ class AbstractModel extends \Redis\AbstractModel {
public
function
tableCacheGet
(
$id
){
public
function
tableCacheGet
(
$id
){
$result
=
$this
->
get
(
$this
->
calcKey
(
$id
));
$result
=
$this
->
get
(
$this
->
calcKey
(
$id
));
if
(
$this
->
is_serialized
(
$result
)){
return
unserialize
(
$result
);
}
return
$result
;
return
$result
;
}
}
public
function
tableCacheSet
(
$id
,
$data
,
$experio
){
public
function
tableCacheSet
(
$id
,
$data
,
$experio
){
...
...
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