This commit is contained in:
root 2019-11-23 23:32:44 +08:00
parent d92548dbe6
commit ad5151e744
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class TutorialController extends Controller
$user = User::find($request->session()->get('id'));
return response([
'data' => [
'subscribe_url' => config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token']
'subscribe_url' => config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token']
]
]);
}

View File

@ -69,7 +69,7 @@ class UserController extends Controller
if ($user->plan_id) {
$user['plan'] = Plan::find($user->plan_id);
}
$user['subscribe_url'] = config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token'];
$user['subscribe_url'] = config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'];
$stat = [
Order::where('status', 0)
->where('user_id', $request->session()->get('id'))
@ -104,7 +104,7 @@ class UserController extends Controller
}
}
}
$user['subscribe_url'] = config('v2board.app_url', env('APP_URL')) . '/api/v1/client/subscribe?token=' . $user['token'];
$user['subscribe_url'] = config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'];
return response([
'data' => [
'user' => $user,