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
b520c97f
authored
Sep 19, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改数据返回
parent
4bcdf16c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
.env
app/Http/Controllers/AssistsController.php
app/Services/QRCodeService.php
.env
View file @
b520c97f
APP_ENV=local
APP_DEBUG=true
APP_KEY=
APP_TIMEZONE=
UT
C
APP_TIMEZONE=
PR
C
SYSTEM_CODE=09
SYSTEM_NAME=
商品
Api
SYSTEM_NAME=
福利中心
Api
ELK_NAME=ic_welfare_api
BaseUrl=http://192.168.10.10:61009
...
...
app/Http/Controllers/AssistsController.php
View file @
b520c97f
...
...
@@ -48,10 +48,10 @@ class AssistsController extends Controller
$userExchangeService
=
new
UserExchangeService
();
$userExchange
=
array_get
(
$userExchangeService
->
getUserExchange
([
'id'
=>
$exchangeId
]),
'data'
);
$result
[
'data'
][
'amount'
]
=
array_get
(
$userExchange
,
'amount'
,
'0'
);
$temp
=
array_get
(
$userExchange
,
'user_id'
);
$temp
=
array_get
(
$userExchange
,
'user_id'
);
$user
=
$this
->
service
->
getUserInfo
(
$temp
);
$result
[
'data'
][
'user_info'
]
=
[
'avatar'
=>
array_get
(
$user
,
'avatar'
),
'avatar'
=>
array_get
(
$user
,
'avatar'
,
''
),
'company_name'
=>
array_get
(
$user
,
'company_name'
,
$user
[
'mobile'
]),
'user_id'
=>
array_get
(
$user
,
'user_id'
,
''
),
];
...
...
app/Services/QRCodeService.php
0 → 100644
View file @
b520c97f
<?php
namespace
App\Services
;
class
QRCodeService
{
}
\ No newline at end of file
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