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
a22130a5
authored
Sep 03, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加用户手机号返回
parent
6d5ce87a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
app/Http/Controllers/ExchangeSettingsController.php
app/Http/Controllers/ExchangeSettingsController.php
View file @
a22130a5
...
@@ -41,11 +41,13 @@ class ExchangeSettingsController extends Controller
...
@@ -41,11 +41,13 @@ class ExchangeSettingsController extends Controller
$exchangeSettings
=
$this
->
service
->
getExchangeSettingList
(
$map
);
$exchangeSettings
=
$this
->
service
->
getExchangeSettingList
(
$map
);
$exchangeSettings
=
$transformer
->
transform
(
$exchangeSettings
);
$exchangeSettings
=
$transformer
->
transform
(
$exchangeSettings
);
$userId
=
$request
->
user
->
user_id
;
$userId
=
$request
->
user
->
user_id
;
$mobile
=
$request
->
user
->
mobile
;
//从redis里面取出用户的剩余红包
//从redis里面取出用户的剩余红包
$redis
=
new
RedisModel
();
$redis
=
new
RedisModel
();
$user
=
json_decode
(
$redis
->
hget
(
'ic_user'
,
$userId
),
true
);
$user
=
json_decode
(
$redis
->
hget
(
'ic_user'
,
$userId
),
true
);
$integral
=
array_get
(
$user
,
'integral'
);
$integral
=
array_get
(
$user
,
'integral'
,
0
);
$exchangeSettings
[
'integral'
]
=
$integral
;
$exchangeSettings
[
'integral'
]
=
$integral
;
$exchangeSettings
[
'mobile'
]
=
$mobile
;
$userExchangeService
=
new
UserExchangeService
();
$userExchangeService
=
new
UserExchangeService
();
$canExchangeStatus
=
$userExchangeService
->
checkCanExchange
(
$userId
);
$canExchangeStatus
=
$userExchangeService
->
checkCanExchange
(
$userId
);
...
...
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