Commit d7afcef3 by 杨树贤

红包活动列表里面返回用户今天是否已经签到

parent 6315bb49
Showing with 6 additions and 1 deletions
......@@ -33,14 +33,19 @@ class IntegralsController extends Controller
*/
public function index(Request $request, UserIntegralService $userIntegralService)
{
$userId = $request->user->user_id;
$map = ['is_api' => 1];
$result = $this->service->getIntegralList($map);
//获取用户当前红包数额
$userIntegral = $userIntegralService->getUserIntegral(['id' => 96]);
$userIntegral = $userIntegralService->getUserIntegral(['id' => $userId]);
if ($userIntegral) {
$result['integral'] = $userIntegral['data']['integral'];
}
//获得当前是否已经签到
$checkInStatus = $this->service->getCheckInStatus($userId);
$result['check_in_status'] = $checkInStatus;
return $this->Export(0, 'ok', $result);
}
......
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