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
80de6754
authored
Sep 29, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改获取兑换信息
parent
76bca39e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
app/Services/ExchangeSettingService.php
app/Services/ExchangeSettingService.php
View file @
80de6754
...
...
@@ -21,9 +21,13 @@ class ExchangeSettingService
//先去获取用户是否有正卡着好友助力的兑换记录
$map
=
[
'user_id'
=>
$userId
,
'type'
=>
2
,
'page_size'
=>
1
,
];
$userExchangeService
=
new
UserExchangeService
();
$userExchange
=
array_get
(
$userExchangeService
->
getUserExchange
(
$map
),
'data'
,
[]);
$userExchange
=
array_get
(
$userExchangeService
->
getUserExchangeList
(
$map
),
'data'
,
[]);
$userExchange
=
array_get
(
$userExchange
,
0
);
dd
(
$userExchange
);
//如果最后一条记录是未审核就代表这个需要好友助力
$info
=
[];
$info
[
'exchanging'
]
=
$info
[
'assist_count'
]
=
$info
[
'exchange_id'
]
=
0
;
...
...
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