where(['openid' => $openid])->find(); foreach (['country', 'province', 'city', 'nickname', 'remark'] as $k) { isset($user[$k]) && $user[$k] = emoji_decode($user[$k]); } return $user; } }