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
c720e609
authored
Aug 28, 2019
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改名称显示
parent
cf43c737
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
app/Services/InviteService.php
config/language.php
app/Services/InviteService.php
View file @
c720e609
...
...
@@ -12,17 +12,17 @@ class InviteService extends BaseService
$result
=
reportCurl
(
$url
,
$map
,
true
);
$result
=
json_decode
(
$result
,
true
);
//需要处理一下数据,因为要获得被邀请人的
电话
号码
$user
Mobil
es
=
[];
//需要处理一下数据,因为要获得被邀请人的
名称(即是公司名称),如果没有名称,那就显示手机
号码
$user
Nam
es
=
[];
if
(
isset
(
$result
[
'data'
])
&&
$result
[
'data'
])
{
//获取到被邀请人的信息
$ids
=
array_column
(
$result
[
'data'
],
'invited_user_id'
);
$users
=
$this
->
getUsersFromRedis
(
$ids
);
foreach
(
$users
as
$user
)
{
$user
Mobiles
[
$user
[
'user_id'
]]
=
$user
[
'mobile'
];
$user
Names
[
$user
[
'user_id'
]]
=
isset
(
$user
[
'company_name'
])
?:
$user
[
'mobile'
];
}
$result
[
'data'
]
=
array_map
(
function
(
$value
)
use
(
$user
Mobil
es
)
{
$value
[
'invited_user_mobile'
]
=
$user
Mobil
es
[
$value
[
'invited_user_id'
]];
$result
[
'data'
]
=
array_map
(
function
(
$value
)
use
(
$user
Nam
es
)
{
$value
[
'invited_user_mobile'
]
=
$user
Nam
es
[
$value
[
'invited_user_id'
]];
return
$value
;
...
...
config/language.php
View file @
c720e609
...
...
@@ -11,9 +11,10 @@ return [
109001
=>
'非法操作'
,
109002
=>
'Hprose请求失败'
,
109003
=>
'登录失败'
,
109004
=>
'请求参数不正确'
,
109100
=>
'今天已经兑换过了,请明天再来吧'
,
109101
=>
'
红包余额不足
'
,
109101
=>
'
兑换名额被抢光了
'
,
109102
=>
'红包余额不足'
,
109103
=>
'当前提现不可用'
,
...
...
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