Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
ic_welfare
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
da9e8419
authored
Sep 27, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
user缓存的问题
parent
e2e928a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
.env
app/Http/Transformers/UserIntegralTransformer.php
.env
View file @
da9e8419
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:nOavyGKkyw4fi+Xv2hK7PrfYw9bapQzqlqMXDIobp9I=
APP_DEBUG=
fals
e
APP_DEBUG=
tru
e
APP_LOG_LEVEL=debug
APP_URL=http://localhost
domain=icsales.cc
...
...
app/Http/Transformers/UserIntegralTransformer.php
View file @
da9e8419
...
...
@@ -27,7 +27,10 @@ class UserIntegralTransformer
if
(
$userIds
)
{
$users
=
$this
->
service
->
getUsersFromRedis
(
$userIds
);
foreach
(
$users
as
$user
)
{
$userMobiles
[
$user
[
'user_id'
]]
=
$user
[
'mobile'
];
if
(
!
isset
(
$user
[
'user_id'
]))
{
continue
;
}
$userMobiles
[
array_get
(
$user
,
'user_id'
)]
=
$user
[
'mobile'
];
$certifications
[
$user
[
'user_id'
]]
=
array_get
(
$user
,
'company_type'
,
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