update: fix v2ray config drawer

This commit is contained in:
tokumeikoi 2021-10-08 20:00:34 +08:00
parent b40272a8fa
commit b18c810f7f
5 changed files with 7 additions and 6 deletions

View File

@ -33,13 +33,13 @@ class ConfigController extends Controller
]);
}
public function testSendEmail(Request $request)
public function testSendMail(Request $request)
{
$email = $request->session()->get('email');
$subject = 'Test Message';
$subject = 'This is v2board test email';
try {
Mail::raw(
'Test Message',
'This is v2board test email',
function ($message) use ($email, $subject) {
$message->to($email)->subject($subject);
}

View File

@ -17,6 +17,7 @@ class AdminRoute
$router->get ('/config/getEmailTemplate', 'Admin\\ConfigController@getEmailTemplate');
$router->get ('/config/getThemeTemplate', 'Admin\\ConfigController@getThemeTemplate');
$router->post('/config/setTelegramWebhook', 'Admin\\ConfigController@setTelegramWebhook');
$router->post('/config/testSendMail', 'Admin\\ConfigController@testSendMail');
// Plan
$router->get ('/plan/fetch', 'Admin\\PlanController@fetch');
$router->post('/plan/save', 'Admin\\PlanController@save');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long