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
ae651fbb
authored
Sep 12, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
æ·修复数组index报错的问题
parent
6f5921c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Services/AssistService.php
app/Services/AssistService.php
View file @
ae651fbb
...
@@ -22,7 +22,7 @@ class AssistService extends BaseService
...
@@ -22,7 +22,7 @@ class AssistService extends BaseService
$userNames
[
$user
[
'user_id'
]]
=
isset
(
$user
[
'company_name'
])
?:
$user
[
'mobile'
];
$userNames
[
$user
[
'user_id'
]]
=
isset
(
$user
[
'company_name'
])
?:
$user
[
'mobile'
];
$userAvatars
[
$user
[
'user_id'
]]
=
$user
[
'avatar'
];
$userAvatars
[
$user
[
'user_id'
]]
=
$user
[
'avatar'
];
}
}
$result
[
'data'
]
=
array_map
(
function
(
$value
)
use
(
$userNames
,
$userAvatars
)
{
$result
[
'data'
]
=
array_map
(
function
(
$value
)
use
(
$userNames
,
$userAvatars
)
{
$value
[
'assist_user_name'
]
=
$userNames
[
$value
[
'assist_user_id'
]];
$value
[
'assist_user_name'
]
=
$userNames
[
$value
[
'assist_user_id'
]];
$value
[
'assist_user_avatar'
]
=
$userAvatars
[
$value
[
'assist_user_id'
]];
$value
[
'assist_user_avatar'
]
=
$userAvatars
[
$value
[
'assist_user_id'
]];
...
@@ -31,7 +31,7 @@ class AssistService extends BaseService
...
@@ -31,7 +31,7 @@ class AssistService extends BaseService
},
$result
[
'data'
]);
},
$result
[
'data'
]);
}
}
return
$result
[
'data'
]
;
return
array_get
(
$result
,
'data'
,
[])
;
}
}
public
function
addAssist
(
$map
=
[])
public
function
addAssist
(
$map
=
[])
...
...
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