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
5eecf0d8
authored
Oct 11, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
数据问题
parent
765647a7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
.env
app/Services/AssistService.php
.env
View file @
5eecf0d8
...
@@ -7,7 +7,7 @@ SYSTEM_CODE=09
...
@@ -7,7 +7,7 @@ SYSTEM_CODE=09
SYSTEM_NAME=福利中心Api
SYSTEM_NAME=福利中心Api
ELK_NAME=ic_welfare_api
ELK_NAME=ic_welfare_api
BaseUrl=http://192.168.
1
0.10:61009
BaseUrl=http://192.168.
2
0.10:61009
#BaseUrl=http://ic_server_welfare.test
#BaseUrl=http://ic_server_welfare.test
ES_URL=http://soapi.icsales.com:8001
ES_URL=http://soapi.icsales.com:8001
authapi=http://authapi.icsales.cc
authapi=http://authapi.icsales.cc
...
...
app/Services/AssistService.php
View file @
5eecf0d8
...
@@ -19,7 +19,7 @@ class AssistService extends BaseService
...
@@ -19,7 +19,7 @@ class AssistService extends BaseService
$ids
=
array_column
(
$result
[
'data'
],
'assist_user_id'
);
$ids
=
array_column
(
$result
[
'data'
],
'assist_user_id'
);
$users
=
$this
->
getUsersFromRedis
(
$ids
);
$users
=
$this
->
getUsersFromRedis
(
$ids
);
foreach
(
$users
as
$user
)
{
foreach
(
$users
as
$user
)
{
$userNames
[
$user
[
'user_id'
]]
=
isset
(
$user
[
'company_name'
])
?:
$user
[
'mobile'
];
$userNames
[
$user
[
'user_id'
]]
=
isset
(
$user
[
'company_name'
])
?
$user
[
'company_name'
]
:
$user
[
'mobile'
];
//微信头像
//微信头像
$weixinAvatar
=
!
empty
(
$user
[
'wechat_oauth'
][
'oauth_head'
])
?
$user
[
'wechat_oauth'
][
'oauth_head'
]
:
''
;
$weixinAvatar
=
!
empty
(
$user
[
'wechat_oauth'
][
'oauth_head'
])
?
$user
[
'wechat_oauth'
][
'oauth_head'
]
:
''
;
$userAvatars
[
$user
[
'user_id'
]]
=
$weixinAvatar
?
:
$user
[
'avatar'
];
$userAvatars
[
$user
[
'user_id'
]]
=
$weixinAvatar
?
:
$user
[
'avatar'
];
...
...
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