check($share_uid, $uid); return response([ 'code' => 200, 'message' => 'success', 'data' => $data ]); } /** * 助力页概览 */ public function helpOverView() { $uid = Auth::auth(); $pshs = new PopularitySharehelpService(); $data = $pshs->helpOverView($uid); return response([ 'code' => 200, 'message' => 'success', 'data' => $data ]); } /** * 加持中的助力 * @param Request $request * @return array */ public function inglist(Request $request) { $uid = Auth::auth(); $page = $request->get('page') ?? 1; $pages = array( 'limit' => 20, 'page' => $page ); $psgs = new PopularitySharehelpService(); $data = $psgs->inglist($uid, $pages); return response([ 'code' => 200, 'message' => 'success', 'data' => $data ]); } /** * 失效的助力 * @param Request $request * @return array */ public function historylist(Request $request) { $uid = Auth::auth(); $page = $request->get('page') ?? 1; $pages = array( 'limit' => 20, 'page' => $page ); $popularityShareHelpService = new PopularitySharehelpService(); $data = $popularityShareHelpService->historylist($uid, $pages); return response([ 'code' => 200, 'message' => 'success', 'data' => $data ]); } }