Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1d3830d8
authored
Sep 04, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加是否可以兑换红包码的判断
parent
8989c0c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
app/Services/IntegralService.php
app/Services/IntegralService.php
View file @
1d3830d8
...
...
@@ -35,6 +35,10 @@ class IntegralService
break
;
case
self
::
INTEGRAL_TYPE_INTEGRAL_CODE
:
$result
[
'data'
][
$key
][
'button_text'
]
=
'去兑换'
;
//还需要告知前端是否已经兑换过红包码
$redis
=
new
RedisModel
();
$exchanged
=
$redis
->
sismember
(
'ic_welfare_code_limit'
,
$map
[
'user_id'
]);
$result
[
'data'
][
$key
][
'code_exchanged'
]
=
$exchanged
;
break
;
case
self
::
INTEGRAL_TYPE_SHARE
:
$result
[
'data'
][
$key
][
'button_text'
]
=
'去分享'
;
...
...
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