Commit 5eecf0d8 by 杨树贤

数据问题

parent 765647a7
Showing with 2 additions and 2 deletions
......@@ -7,7 +7,7 @@ SYSTEM_CODE=09
SYSTEM_NAME=福利中心Api
ELK_NAME=ic_welfare_api
BaseUrl=http://192.168.10.10:61009
BaseUrl=http://192.168.20.10:61009
#BaseUrl=http://ic_server_welfare.test
ES_URL=http://soapi.icsales.com:8001
authapi=http://authapi.icsales.cc
......
......@@ -19,7 +19,7 @@ class AssistService extends BaseService
$ids = array_column($result['data'], 'assist_user_id');
$users = $this->getUsersFromRedis($ids);
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'] : '';
$userAvatars[$user['user_id']] = $weixinAvatar ? : $user['avatar'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment