vip($uid); return response()->json([ 'code' => 200, 'message' => 'OK' ]); } /** * 获取内测资格 */ public function getTestQual() { $uid = Auth::auth(); if (Redis::sismember("fpdx_supervip_test", $uid)) { throw new AlertException("你已经获取内测资格", 200); } else { $tc = new UserNoticeService(); $tc->test($uid); return array( 'code' => 200, 'message' => 'success' ); } } public function beVip() { $uid = Auth::auth(); $pfs = new ProfileService(); $pfs->beVip($uid, true); return response()->json([ 'code' => 200, 'message' => 'OK' ]); } }