This commit is contained in:
root 2019-11-23 13:17:33 +08:00
parent 715e0175cf
commit 45a19164ec

View File

@ -8,14 +8,14 @@ use App\Models\User;
class TutorialController extends Controller
{
public function getSubscribeUrl () {
public function getSubscribeUrl (Request $request) {
$user = User::find($request->session()->get('id'));
return response([
'data' => config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token']
]);
}
public function getAppleID () {
public function getAppleID (Request $request) {
$user = User::find($request->session()->get('id'));
if ($user->expired_at < time()) {
return response([