Commit da9e8419 by 杨树贤

user缓存的问题

parent e2e928a0
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:nOavyGKkyw4fi+Xv2hK7PrfYw9bapQzqlqMXDIobp9I=
APP_DEBUG=false
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
domain=icsales.cc
......
......@@ -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);
}
}
......
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