Commit a22130a5 by 杨树贤

添加用户手机号返回

parent 6d5ce87a
......@@ -41,11 +41,13 @@ class ExchangeSettingsController extends Controller
$exchangeSettings = $this->service->getExchangeSettingList($map);
$exchangeSettings = $transformer->transform($exchangeSettings);
$userId = $request->user->user_id;
$mobile = $request->user->mobile;
//从redis里面取出用户的剩余红包
$redis = new RedisModel();
$user = json_decode($redis->hget('ic_user', $userId), true);
$integral = array_get($user, 'integral');
$integral = array_get($user, 'integral', 0);
$exchangeSettings['integral'] = $integral;
$exchangeSettings['mobile'] = $mobile;
$userExchangeService = new UserExchangeService();
$canExchangeStatus = $userExchangeService->checkCanExchange($userId);
......
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