forked from XiaoLFeng/XF_Index
AddFeature: 添加删除拒绝审核功能
友链编辑页面删除,以及审核期间拒绝审核,优化Js提交体验感。 新增: - link-console-delete.blade.php - link-console-refuse-verify.blade.php 修改: - api.php - edit.blade.php - Link.php Signed-off-by: XiaoLFeng <gm@x-lf.cn>
This commit is contained in:
parent
753b1a5f4a
commit
d536233bc8
|
@ -32,122 +32,6 @@ public function __construct()
|
|||
$this->data = $data->data;
|
||||
}
|
||||
|
||||
protected function viewEdit($userId): Application|Factory|View|RedirectResponse
|
||||
{
|
||||
$this->setDataForViewEditAndCheckAdmin($userId);
|
||||
// 没有查询到执行删除
|
||||
$this->data['subDescriptionForLine'] = '友链修改';
|
||||
if ($this->data['blog'][0] == null) return Response::redirectTo(route('console.friends-link.list'));
|
||||
return view('console.friends-link.edit', $this->data);
|
||||
}
|
||||
|
||||
protected function viewCheckAdmin($userId): View|Factory|Application|RedirectResponse
|
||||
{
|
||||
$this->setDataForViewEditAndCheckAdmin($userId);
|
||||
// 用户期望位置替换显示
|
||||
$this->data['blog'][0]->blogLocation = $this->data['blog'][0]->blogUserLocation;
|
||||
// 没有查询到执行删除
|
||||
$this->data['subDescriptionForLine'] = '友链审核';
|
||||
if ($this->data['blog'][0] == null) return Response::redirectTo(route('console.friends-link.list'));
|
||||
return view('console.friends-link.edit', $this->data);
|
||||
}
|
||||
|
||||
protected function viewList(Request $request): Factory|View|Application|RedirectResponse
|
||||
{
|
||||
$this->data['request'] = $request;
|
||||
$dataMarge = [
|
||||
'blogFriendsTotal' => DB::table('blog_link')
|
||||
->whereNotIn('blog_link.blogLocation', [0])
|
||||
->count(),
|
||||
'blogFriendsCheck' => DB::table('blog_link')
|
||||
->where('blog_link.blogLocation', 0)
|
||||
->count(),
|
||||
'blogFriendsBest' => DB::table('blog_link')
|
||||
->where('blog_link.blogLocation', 2)
|
||||
->count(),
|
||||
];
|
||||
if (empty($request->search)) {
|
||||
// 获取数据库信息
|
||||
if (empty($request->page)) $request->page = 0;
|
||||
$this->data['blog'] = DB::table('blog_link')
|
||||
->whereNotIn('blogLocation', [0])
|
||||
->orderBy('id')
|
||||
->offset($request->page * 10)
|
||||
->limit(10)
|
||||
->get()
|
||||
->toArray();
|
||||
$this->data['blogCount'] = DB::table('blog_link')
|
||||
->whereNotIn('blogLocation', [0])
|
||||
->orderBy('id')
|
||||
->count();
|
||||
$this->data['webClass'] = [
|
||||
'active' => 'px-3 py-2 text-blue-600 border border-gray-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white',
|
||||
'unactive' => 'px-3 py-2 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white',
|
||||
];
|
||||
$this->data['blogCount'] = ceil($this->data['blogCount'] / 10);
|
||||
if ($this->data['request']->page > $this->data['blogCount'] - 1) return Response::redirectTo(route('console.friends-link.list'));
|
||||
} else {
|
||||
$this->data['blog'] = DB::select("SELECT * FROM xf_index.blog_link WHERE blogName LIKE '%$request->search%' OR blogUrl LIKE '%$request->search%' ORDER BY id");
|
||||
}
|
||||
$this->data = array_merge($this->data, $dataMarge);
|
||||
$blogColor = DB::table('blog_color')
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->toArray();
|
||||
for ($i = 0; !empty($blogColor[$i]->id); $i++) {
|
||||
$blogColor[$i]->colorLightType = str_replace('border-', 'ring-', $blogColor[$i]->colorLightType);
|
||||
$blogColor[$i]->colorDarkType = str_replace('border-', 'ring-', $blogColor[$i]->colorDarkType);
|
||||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
return view('console.friends-link.list', $this->data);
|
||||
}
|
||||
|
||||
protected function viewCheck(): Factory|View|Application
|
||||
{
|
||||
// 检查是否存在含有未在本站分配位置
|
||||
$this->data['blog'] = DB::table('blog_link')
|
||||
->whereIn('blog_link.blogLocation', [0])
|
||||
->get()
|
||||
->toArray();
|
||||
$blogColor = DB::table('blog_color')
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->toArray();
|
||||
for ($i = 0; !empty($blogColor[$i]->id); $i++) {
|
||||
$blogColor[$i]->colorLightType = str_replace('border-', 'ring-', $blogColor[$i]->colorLightType);
|
||||
$blogColor[$i]->colorDarkType = str_replace('border-', 'ring-', $blogColor[$i]->colorDarkType);
|
||||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
return view('console.friends-link.check', $this->data);
|
||||
}
|
||||
|
||||
protected function viewAdd(): Factory|View|Application
|
||||
{
|
||||
$this->data['blogSort'] = DB::table('blog_sort')
|
||||
->orderBy('sort')
|
||||
->get()
|
||||
->toArray();
|
||||
$blogColor = DB::table('blog_color')
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->toArray();
|
||||
for ($i = 0; !empty($blogColor[$i]->id); $i++) {
|
||||
$blogColor[$i]->colorDarkType = str_replace('dark:', '', $blogColor[$i]->colorDarkType);
|
||||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
return view('console.friends-link.add', $this->data);
|
||||
}
|
||||
|
||||
protected function viewSort(): Factory|View|Application
|
||||
{
|
||||
return view('console.friends-link.sort', $this->data);
|
||||
}
|
||||
|
||||
protected function viewColor(): Factory|View|Application
|
||||
{
|
||||
return view('console.friends-link.color', $this->data);
|
||||
}
|
||||
|
||||
public function apiConsoleAdd(Request $request): JsonResponse
|
||||
{
|
||||
// 检查数据
|
||||
|
@ -419,6 +303,199 @@ public function apiConsoleCheck(Request $request): JsonResponse
|
|||
return Response::json($returnData, $returnData['code']);
|
||||
}
|
||||
|
||||
public function apiConsoleCheckFail(Request $request): JsonResponse
|
||||
{
|
||||
// 检查用户是否登录
|
||||
if (Auth::check()) {
|
||||
if (Auth::user()->admin) {
|
||||
// 处理获取数据
|
||||
$dataCheck = Validator::make($request->all(), [
|
||||
'userId' => 'required|int',
|
||||
'sendMail' => 'int',
|
||||
'sendReason' => 'string',
|
||||
]);
|
||||
if ($dataCheck->fails()) {
|
||||
$errorType = array_keys($dataCheck->failed());
|
||||
$i = 0;
|
||||
foreach ($dataCheck->failed() as $valueData) {
|
||||
$errorInfo[$errorType[$i]] = array_keys($valueData);
|
||||
if ($i == 0) {
|
||||
$errorSingle = [
|
||||
'info' => $errorType[$i],
|
||||
'need' => $errorInfo[$errorType[$i]],
|
||||
];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$returnData = [
|
||||
'output' => 'DataFormatError',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '输入内容有错误',
|
||||
'errorSingle' => $errorSingle,
|
||||
'error' => $errorInfo,
|
||||
],
|
||||
];
|
||||
} else {
|
||||
// 获取数据
|
||||
$this->data['blog'] = DB::table('blog_link')
|
||||
->where([['id', '=', $request->userId]])
|
||||
->get()
|
||||
->toArray();
|
||||
$this->data['reason'] = $request->sendReason;
|
||||
if (!empty($this->data['blog'][0]->id)) {
|
||||
// 更新数据库
|
||||
DB::table('blog_link')
|
||||
->where([['id', '=', $this->data['blog'][0]->id]])
|
||||
->delete();
|
||||
if (!empty($request->sendMail) && !empty($this->data['blog'][0]->blogOwnEmail)) {
|
||||
Mail::send('mail.link-console-refuse-verify', $this->data, function (Message $mail) {
|
||||
global $request;
|
||||
$mail->from(env('MAIL_USERNAME'), env('APP_NAME'));
|
||||
$mail->to($this->data['blog'][0]->blogOwnEmail);
|
||||
$mail->subject(env('APP_NAME') . '-友链审核未通过通知');
|
||||
});
|
||||
}
|
||||
$returnData = [
|
||||
'output' => 'Success',
|
||||
'code' => 200,
|
||||
'data' => [
|
||||
'message' => '删除成功',
|
||||
],
|
||||
];
|
||||
} else {
|
||||
$returnData = [
|
||||
'output' => 'NoBlog',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '没有对应博客序列',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$returnData = [
|
||||
'output' => 'NoPermission',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '没有权限',
|
||||
],
|
||||
];
|
||||
}
|
||||
} else {
|
||||
$returnData = [
|
||||
'output' => 'PleaseLogin',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '请登录',
|
||||
],
|
||||
];
|
||||
}
|
||||
return Response::json($returnData, $returnData['code']);
|
||||
}
|
||||
|
||||
public function apiConsoleDelete(Request $request): JsonResponse
|
||||
{
|
||||
// 检查用户是否登录
|
||||
if (Auth::check()) {
|
||||
if (Auth::user()->admin) {
|
||||
// 处理获取数据
|
||||
$dataCheck = Validator::make($request->all(), [
|
||||
'userId' => 'required|int',
|
||||
'sendMail' => 'int',
|
||||
]);
|
||||
if ($dataCheck->fails()) {
|
||||
$errorType = array_keys($dataCheck->failed());
|
||||
$i = 0;
|
||||
foreach ($dataCheck->failed() as $valueData) {
|
||||
$errorInfo[$errorType[$i]] = array_keys($valueData);
|
||||
if ($i == 0) {
|
||||
$errorSingle = [
|
||||
'info' => $errorType[$i],
|
||||
'need' => $errorInfo[$errorType[$i]],
|
||||
];
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
$returnData = [
|
||||
'output' => 'DataFormatError',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '输入内容有错误',
|
||||
'errorSingle' => $errorSingle,
|
||||
'error' => $errorInfo,
|
||||
],
|
||||
];
|
||||
} else {
|
||||
// 获取数据
|
||||
$this->data['blog'] = DB::table('blog_link')
|
||||
->where([['id', '=', $request->userId]])
|
||||
->get()
|
||||
->toArray();
|
||||
if (!empty($this->data['blog'][0]->id)) {
|
||||
// 更新数据库
|
||||
DB::table('blog_link')
|
||||
->where([['id', '=', $this->data['blog'][0]->id]])
|
||||
->delete();
|
||||
if (!empty($request->sendMail) && !empty($this->data['blog'][0]->blogOwnEmail)) {
|
||||
Mail::send('mail.link-console-delete', $request->all(), function (Message $mail) {
|
||||
global $request;
|
||||
$mail->from(env('MAIL_USERNAME'), env('APP_NAME'));
|
||||
$mail->to($this->data['blog'][0]->blogOwnEmail);
|
||||
$mail->subject(env('APP_NAME') . '-友链被删除');
|
||||
});
|
||||
}
|
||||
$returnData = [
|
||||
'output' => 'Success',
|
||||
'code' => 200,
|
||||
'data' => [
|
||||
'message' => '删除成功',
|
||||
],
|
||||
];
|
||||
} else {
|
||||
$returnData = [
|
||||
'output' => 'NoBlog',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '没有对应博客序列',
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$returnData = [
|
||||
'output' => 'NoPermission',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '没有权限',
|
||||
],
|
||||
];
|
||||
}
|
||||
} else {
|
||||
$returnData = [
|
||||
'output' => 'PleaseLogin',
|
||||
'code' => 403,
|
||||
'data' => [
|
||||
'message' => '请登录',
|
||||
],
|
||||
];
|
||||
}
|
||||
return Response::json($returnData, $returnData['code']);
|
||||
}
|
||||
|
||||
protected function viewEdit($userId): Application|Factory|View|RedirectResponse
|
||||
{
|
||||
$this->setDataForViewEditAndCheckAdmin($userId);
|
||||
if ($this->data['blog'][0] != null) {
|
||||
// 没有查询到执行删除
|
||||
$this->data['subDescriptionForLine'] = '友链修改';
|
||||
if ($this->data['blog'][0] == null) return Response::redirectTo(route('console.friends-link.list'));
|
||||
return view('console.friends-link.edit', $this->data);
|
||||
} else {
|
||||
return Response::redirectTo(route('console.friends-link.check'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $userId
|
||||
* @return void
|
||||
|
@ -443,4 +520,119 @@ private function setDataForViewEditAndCheckAdmin($userId): void
|
|||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
}
|
||||
|
||||
protected function viewCheckAdmin($userId): View|Factory|Application|RedirectResponse
|
||||
{
|
||||
$this->setDataForViewEditAndCheckAdmin($userId);
|
||||
if ($this->data['blog'][0] != null) {
|
||||
if ($this->data['blog'][0]->blogLocation == 0) {
|
||||
// 用户期望位置替换显示
|
||||
$this->data['blog'][0]->blogLocation = $this->data['blog'][0]->blogUserLocation;// 没有查询到执行删除
|
||||
$this->data['subDescriptionForLine'] = '友链审核';
|
||||
if ($this->data['blog'][0] == null) return Response::redirectTo(route('console.friends-link.list'));
|
||||
return view('console.friends-link.edit', $this->data);
|
||||
} else {
|
||||
return Response::redirectTo(route('console.friends-link.check'));
|
||||
}
|
||||
} else {
|
||||
return Response::redirectTo(route('console.friends-link.check'));
|
||||
}
|
||||
}
|
||||
|
||||
protected function viewList(Request $request): Factory|View|Application|RedirectResponse
|
||||
{
|
||||
$this->data['request'] = $request;
|
||||
$dataMarge = [
|
||||
'blogFriendsTotal' => DB::table('blog_link')
|
||||
->whereNotIn('blog_link.blogLocation', [0])
|
||||
->count(),
|
||||
'blogFriendsCheck' => DB::table('blog_link')
|
||||
->where('blog_link.blogLocation', 0)
|
||||
->count(),
|
||||
'blogFriendsBest' => DB::table('blog_link')
|
||||
->where('blog_link.blogLocation', 2)
|
||||
->count(),
|
||||
];
|
||||
if (empty($request->search)) {
|
||||
// 获取数据库信息
|
||||
if (empty($request->page)) $request->page = 0;
|
||||
$this->data['blog'] = DB::table('blog_link')
|
||||
->whereNotIn('blogLocation', [0])
|
||||
->orderBy('id')
|
||||
->offset($request->page * 10)
|
||||
->limit(10)
|
||||
->get()
|
||||
->toArray();
|
||||
$this->data['blogCount'] = DB::table('blog_link')
|
||||
->whereNotIn('blogLocation', [0])
|
||||
->orderBy('id')
|
||||
->count();
|
||||
$this->data['webClass'] = [
|
||||
'active' => 'px-3 py-2 text-blue-600 border border-gray-300 bg-blue-50 hover:bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white',
|
||||
'unactive' => 'px-3 py-2 leading-tight text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white',
|
||||
];
|
||||
$this->data['blogCount'] = ceil($this->data['blogCount'] / 10);
|
||||
if ($this->data['request']->page > $this->data['blogCount'] - 1) return Response::redirectTo(route('console.friends-link.list'));
|
||||
} else {
|
||||
$this->data['blog'] = DB::select("SELECT * FROM xf_index.blog_link WHERE blogName LIKE '%$request->search%' OR blogUrl LIKE '%$request->search%' ORDER BY id");
|
||||
}
|
||||
$this->data = array_merge($this->data, $dataMarge);
|
||||
$blogColor = DB::table('blog_color')
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->toArray();
|
||||
for ($i = 0; !empty($blogColor[$i]->id); $i++) {
|
||||
$blogColor[$i]->colorLightType = str_replace('border-', 'ring-', $blogColor[$i]->colorLightType);
|
||||
$blogColor[$i]->colorDarkType = str_replace('border-', 'ring-', $blogColor[$i]->colorDarkType);
|
||||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
return view('console.friends-link.list', $this->data);
|
||||
}
|
||||
|
||||
protected function viewCheck(): Factory|View|Application
|
||||
{
|
||||
// 检查是否存在含有未在本站分配位置
|
||||
$this->data['blog'] = DB::table('blog_link')
|
||||
->whereIn('blog_link.blogLocation', [0])
|
||||
->orderBy('id', 'desc')
|
||||
->get()
|
||||
->toArray();
|
||||
$blogColor = DB::table('blog_color')
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->toArray();
|
||||
for ($i = 0; !empty($blogColor[$i]->id); $i++) {
|
||||
$blogColor[$i]->colorLightType = str_replace('border-', 'ring-', $blogColor[$i]->colorLightType);
|
||||
$blogColor[$i]->colorDarkType = str_replace('border-', 'ring-', $blogColor[$i]->colorDarkType);
|
||||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
return view('console.friends-link.check', $this->data);
|
||||
}
|
||||
|
||||
protected function viewAdd(): Factory|View|Application
|
||||
{
|
||||
$this->data['blogSort'] = DB::table('blog_sort')
|
||||
->orderBy('sort')
|
||||
->get()
|
||||
->toArray();
|
||||
$blogColor = DB::table('blog_color')
|
||||
->orderBy('id')
|
||||
->get()
|
||||
->toArray();
|
||||
for ($i = 0; !empty($blogColor[$i]->id); $i++) {
|
||||
$blogColor[$i]->colorDarkType = str_replace('dark:', '', $blogColor[$i]->colorDarkType);
|
||||
}
|
||||
$this->data['blogColor'] = $blogColor;
|
||||
return view('console.friends-link.add', $this->data);
|
||||
}
|
||||
|
||||
protected function viewSort(): Factory|View|Application
|
||||
{
|
||||
return view('console.friends-link.sort', $this->data);
|
||||
}
|
||||
|
||||
protected function viewColor(): Factory|View|Application
|
||||
{
|
||||
return view('console.friends-link.color', $this->data);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,14 +63,13 @@ class="text-black dark:text-white"></b> 条</p>
|
|||
<form id="FormData" action="#" onsubmit="return false" method="POST">
|
||||
<div class="grid gap-6 mb-6 md:grid-cols-2">
|
||||
<div>
|
||||
<label for="userEmail" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">博主邮箱 <span class="text-red-700">*</span></label>
|
||||
<label for="userEmail" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">博主邮箱</label>
|
||||
<div class="relative">
|
||||
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
||||
<i class="bi bi-envelope"></i>
|
||||
</div>
|
||||
<input type="email" name="userEmail" value="{{ $blog[0]->blogOwnEmail }}" id="userEmail" placeholder="gm@x-lf.cn"
|
||||
class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||
required>
|
||||
class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -267,7 +266,8 @@ class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus
|
|||
<div class="sm:hidden lg:block col-span-3">
|
||||
<div class="items-center justify-center rounded bg-gray-50 dark:bg-gray-800 shadow grid grid-cols-1 mb-4">
|
||||
<div class="p-2 xl:p-8 grid grid-cols-2">
|
||||
<button onclick="ajax()" type="submit" class="m-2 text-white bg-green-500 hover:bg-green-600 focus:ring-4 focus:outline-none
|
||||
<button onclick="ajax()" id="SubmitSend" type="submit" class="m-2 text-white bg-green-500 hover:bg-green-600 focus:ring-4
|
||||
focus:outline-none
|
||||
focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-green-600 dark:hover:bg-green-700
|
||||
dark:focus:ring-blue-800">
|
||||
<i class="bi bi-send"></i>
|
||||
|
@ -277,8 +277,11 @@ class="bg-gray-100 border border-gray-300 text-gray-900 text-sm rounded-lg focus
|
|||
审核通过
|
||||
@endif</span>
|
||||
</button>
|
||||
<button type="submit" class="m-2 text-white bg-red-500 hover:bg-red-600 focus:ring-4 focus:outline-none focus:ring-blue-300
|
||||
font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-blue-800">
|
||||
<button data-modal-target="Modal" data-modal-toggle="Modal" id="SubmitRefuse" type="submit" class="m-2 text-white bg-red-500
|
||||
hover:bg-red-600
|
||||
focus:ring-4 focus:outline-none
|
||||
focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-red-600 dark:hover:bg-red-700
|
||||
dark:focus:ring-blue-800">
|
||||
<i class="bi bi-trash3"></i>
|
||||
<span class="ps-1">@if($subDescriptionForLine == '友链修改')
|
||||
删除友链
|
||||
|
@ -343,6 +346,83 @@ class="z-[9999] fixed top-5 left-5 hidden items-center w-full max-w-xs p-4 space
|
|||
<span id="toast-info">Message sent successfully.</span>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
|
||||
<button class="block text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none
|
||||
focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800" type="button">
|
||||
Toggle modal
|
||||
</button>
|
||||
|
||||
<div id="Modal" tabindex="-1" class="fixed top-0 left-0 right-0 z-50 hidden p-4 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
||||
<div class="relative w-full max-w-md max-h-full">
|
||||
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
|
||||
<button type="button" class="absolute top-3 right-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8
|
||||
h-8 ml-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="Modal">
|
||||
<svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
|
||||
</svg>
|
||||
<span class="sr-only">Close modal</span>
|
||||
</button>
|
||||
<div class="p-6 text-center">
|
||||
<svg class="mx-auto mb-4 text-gray-400 w-12 h-12 dark:text-gray-200" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none"
|
||||
viewBox="0 0 20 20">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
|
||||
d="M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"/>
|
||||
</svg>
|
||||
<form id="FormDataCancel" action="#" onsubmit="return false" method="POST">
|
||||
<div class="mb-5 text-md font-normal text-gray-500 dark:text-gray-400">
|
||||
@if($subDescriptionForLine == '友链修改')
|
||||
<div class="mb-3">您要删除该友链吗?</div>
|
||||
<label>
|
||||
<input name="userId" id="userId" value="{{ $blog[0]->id }}" hidden="hidden"/>
|
||||
</label>
|
||||
<label class="relative inline-flex items-center cursor-pointer">
|
||||
<input type="checkbox" name="sendMail" value="1" class="sr-only peer" @if(empty($blog[0]->blogOwnEmail)) disabled @endif>
|
||||
<div
|
||||
class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
|
||||
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">发送通知邮件</span>
|
||||
@if(empty($blog[0]->blogOwnEmail))
|
||||
<span class="text-red-500 text-sm font-medium">(对方没有配置邮箱)</span>
|
||||
@endif
|
||||
</label>
|
||||
@else
|
||||
<div class="mb-3">您确认要拒绝该友链申请吗?</div>
|
||||
<label>
|
||||
<input name="userId" id="userId" value="{{ $blog[0]->id }}" hidden="hidden"/>
|
||||
</label>
|
||||
<div class="mb-3">
|
||||
<label for="sendReason" class="block mb-1 text-sm font-medium text-left text-gray-900 dark:text-white">拒绝原因</label>
|
||||
<input type="text" id="sendReason" name="sendReason" class="block w-full p-2 text-gray-900 border border-gray-300 rounded-lg
|
||||
bg-gray-50 sm:text-xs focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400
|
||||
dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
</div>
|
||||
<label class="relative inline-flex items-center cursor-pointer">
|
||||
<input type="checkbox" name="sendMail" value="1" class="sr-only peer" checked>
|
||||
<div
|
||||
class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
|
||||
<span class="ml-3 text-sm font-medium text-gray-900 dark:text-gray-300">发送通知邮件</span>
|
||||
</label>
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
<button data-modal-hide="Modal" onclick="cancel()" type="button" class="text-white bg-red-600 hover:bg-red-800 focus:ring-4 focus:outline-none
|
||||
focus:ring-red-300 dark:focus:ring-red-800 font-medium rounded-lg text-sm inline-flex items-center px-5 py-2.5 text-center mr-2">
|
||||
@if($subDescriptionForLine == '友链修改')
|
||||
删除友链
|
||||
@else
|
||||
驳回申请
|
||||
@endif
|
||||
</button>
|
||||
<button data-modal-hide="Modal" onclick="location.reload()" type="button" class="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4
|
||||
focus:outline-none focus:ring-gray-200 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10
|
||||
dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600">
|
||||
取消操作
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<script src="{{ asset('js/app.js') }}"></script>
|
||||
<script src="{{ asset('js/jquery.js') }}"></script>
|
||||
|
@ -422,13 +502,25 @@ function ajax() {
|
|||
data: $('#FormData').serialize(),
|
||||
url: '@if($subDescriptionForLine == '友链修改') {{ route('api.link.console.edit') }} @else {{ route('api.link.console.check') }} @endif',
|
||||
dataType: "json",
|
||||
beforeSend: function () {
|
||||
$('#SubmitSend').prop('disabled', true).removeClass('bg-green-500').addClass('bg-green-600')
|
||||
.html('<svg aria-hidden="true" role="status" class="inline w-4 h-4 text-white animate-spin" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="#E5E7EB"/> <path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentColor"/></svg>' +
|
||||
'<span class="ps-1">正在操作</span>');
|
||||
$('#SubmitRefuse').prop('disabled', true).removeClass('bg-red-500').addClass('bg-red-600');
|
||||
},
|
||||
success: function (returnData) {
|
||||
if (returnData.output === "Success") {
|
||||
$('#SubmitSend').html('<i class="bi bi-check2-circle"></i><span class="ps-1">操作成功</span>')
|
||||
|
||||
Toast.toggle('操作成功', '<i class="bi bi-check-circle text-green-500"></i>');
|
||||
setTimeout(function () {
|
||||
location.href = '{{ route('console.friends-link.list') }}';
|
||||
}, 3000);
|
||||
} else {
|
||||
$('#SubmitSend').html('<i class="bi bi-send"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')提交修改@else审核通过@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-green-600').addClass('bg-green-500');
|
||||
$('#SubmitRefuse').html('<i class="bi bi-trash3"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')删除友链@else审核拒绝@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-red-600').addClass('bg-red-500');
|
||||
Toast('未知错误', '<i class="bi bi-x-circle text-red-500"></i>');
|
||||
}
|
||||
},
|
||||
|
@ -443,6 +535,58 @@ function ajax() {
|
|||
} else {
|
||||
Toast.toggle('未知错误', '<i class="bi bi-x-circle text-red-500"></i>');
|
||||
}
|
||||
$('#SubmitSend').html('<i class="bi bi-send"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')提交修改@else审核通过@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-green-600').addClass('bg-green-500');
|
||||
$('#SubmitRefuse').html('<i class="bi bi-trash3"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')删除友链@else审核拒绝@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-red-600').addClass('bg-red-500');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function cancel() {
|
||||
$.ajax({
|
||||
async: true,
|
||||
method: "POST",
|
||||
data: $('#FormDataCancel').serialize(),
|
||||
url: '@if($subDescriptionForLine == '友链修改') {{ route('api.link.console.delete') }} @else {{ route('api.link.console.check-fail') }} @endif',
|
||||
dataType: "json",
|
||||
beforeSend: function () {
|
||||
$('#SubmitSend').prop('disabled', true).removeClass('bg-green-500').addClass('bg-green-600');
|
||||
$('#SubmitRefuse').prop('disabled', true).removeClass('bg-red-500').addClass('bg-red-600')
|
||||
.html('<svg aria-hidden="true" role="status" class="inline w-4 h-4 text-white animate-spin" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="#E5E7EB"/> <path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentColor"/></svg>' +
|
||||
'<span class="ps-1">正在操作</span>');
|
||||
},
|
||||
success: function (returnData) {
|
||||
$('#SubmitRefuse').html('<i class="bi bi-check2-circle"></i><span class="ps-1">操作成功</span>')
|
||||
|
||||
if (returnData.output === "Success") {
|
||||
Toast.toggle('操作成功', '<i class="bi bi-check-circle text-green-500"></i>');
|
||||
setTimeout(function () {
|
||||
location.href = '{{ route('console.friends-link.list') }}';
|
||||
}, 3000);
|
||||
} else {
|
||||
Toast('未知错误', '<i class="bi bi-x-circle text-red-500"></i>');
|
||||
$('#SubmitSend').html('<i class="bi bi-send"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')提交修改@else审核通过@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-green-600').addClass('bg-green-500');
|
||||
$('#SubmitRefuse').html('<i class="bi bi-trash3"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')删除友链@else审核拒绝@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-red-600').addClass('bg-red-500');
|
||||
}
|
||||
},
|
||||
error: function (returnData) {
|
||||
Toast.set('其他错误', '<i class="bi bi-x-circle text-red-500"></i>');
|
||||
if (returnData.responseJSON.output === 'DataFormatError') {
|
||||
for (let key in Enum) {
|
||||
if (returnData.responseJSON.data.errorSingle.info === key) {
|
||||
Toast.toggle(Enum[key] + '错误,注意格式', '<i class="bi bi-x-circle text-red-500"></i>');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Toast.toggle('未知错误', '<i class="bi bi-x-circle text-red-500"></i>');
|
||||
}
|
||||
$('#SubmitSend').html('<i class="bi bi-send"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')提交修改@else审核通过@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-green-600').addClass('bg-green-500');
|
||||
$('#SubmitRefuse').html('<i class="bi bi-trash3"></i><span class="ps-1">@if($subDescriptionForLine == '友链修改')删除友链@else审核拒绝@endif</span>')
|
||||
.prop('disabled', false).removeClass('bg-red-600').addClass('bg-red-500');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
55
resources/views/mail/link-console-delete.blade.php
Normal file
55
resources/views/mail/link-console-delete.blade.php
Normal file
|
@ -0,0 +1,55 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>Mail</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
</head>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600"
|
||||
style="border-collapse: collapse;border: 1px solid #cccccc;box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175)">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#70bbd9" style="padding: 30px 0 30px 0; font-size: 30px;"><b>{{ env('APP_NAME') }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding: 30px 30px 30px 30px;">
|
||||
<tr>
|
||||
<td style="padding: 10px 0px 30px 0px;color: #08212b; font-family: Arial, sans-serif; font-size: 10px;">
|
||||
时间: <b>{{ date('Y-m-d H:i:s') }}</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px 0px 10px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 24px;">
|
||||
Dear. <a style="text-decoration: none;color: #198754;" href="mailto:{{ $userEmail }}">{{ $userEmail }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px 5px 5px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 16px;">
|
||||
您好 <a style="text-decoration: none;color: #198754;" href="{{ $userUrl }}"><b>{{ $userBlog }}</b></a>
|
||||
的站长:<b>{{ $userEmail }}</b><br/>
|
||||
您在本博客(<a style="text-decoration: none;color: #198754;" href="{{ env('APP_BLOG') }}">{{ env('APP_NAME') }}</a>)的友链已被删除!<br/>
|
||||
<hr/>
|
||||
此邮件为特此提醒,若对此删除有疑问请询问管理员<br/>
|
||||
<a style="text-decoration: none;color: #198754;" href="mailto:{{ $sqlEmail }}">{{ $sqlEmail }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#f0f0f0" style="padding: 30px 20px 30px 20px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="font-family: Arial, sans-serif; font-size: 14px;">
|
||||
<font style="color: grey;">© 2022 - {{ date('Y') }}. {{ env('APP_NAME') }} All Rights Reserved.</font><br/>
|
||||
<font style="color: grey;">本邮件为自动发出,请勿直接回复</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td style="padding: 30px 0 20px 0;"></td>
|
||||
</tr>
|
||||
</html>
|
56
resources/views/mail/link-console-refuse-verify.blade.php
Normal file
56
resources/views/mail/link-console-refuse-verify.blade.php
Normal file
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title>Mail</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
</head>
|
||||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600"
|
||||
style="border-collapse: collapse;border: 1px solid #cccccc;box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175)">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#70bbd9" style="padding: 30px 0 30px 0; font-size: 30px;"><b>{{ env('APP_NAME') }}</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding: 30px 30px 30px 30px;">
|
||||
<tr>
|
||||
<td style="padding: 10px 0px 30px 0px;color: #08212b; font-family: Arial, sans-serif; font-size: 10px;">
|
||||
时间: <b>{{ date('Y-m-d H:i:s') }}</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px 0px 10px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 24px;">
|
||||
Dear. <a style="text-decoration: none;color: #198754;" href="mailto:{{ $blog[0]->blogOwnEmail }}">{{ $blog[0]->blogOwnEmail }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 0px 5px 5px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 16px;">
|
||||
您好 <a style="text-decoration: none;color: #198754;" href="{{ $blog[0]->blogUrl }}"><b>{{ $blog[0]->blogName }}</b></a>
|
||||
的站长:<b>{{ $userEmail }}</b><br/>
|
||||
您在本博客(<a style="text-decoration: none;color: #198754;" href="{{ env('APP_BLOG') }}">{{ env('APP_NAME') }}</a>)申请的友链 <b>未</b>
|
||||
审核通过!<br/>
|
||||
@if(!empty($reason))
|
||||
<hr/> 未通过原因如下:<br/>{{ $reason }}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#f0f0f0" style="padding: 30px 20px 30px 20px;">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td style="font-family: Arial, sans-serif; font-size: 14px;">
|
||||
<font style="color: grey;">© 2022 - {{ date('Y') }}. {{ env('APP_NAME') }} All Rights Reserved.</font><br/>
|
||||
<font style="color: grey;">本邮件为自动发出,请勿直接回复</font>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td style="padding: 30px 0 20px 0;"></td>
|
||||
</tr>
|
||||
</html>
|
|
@ -8,7 +8,6 @@
|
|||
use App\Http\Controllers\Authme;
|
||||
use App\Http\Controllers\Console\Link as ConsoleLink;
|
||||
use App\Http\Controllers\Function\Link;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
@ -24,10 +23,6 @@
|
|||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
|
||||
// 登陆类
|
||||
Route::prefix('auth')->group(function () {
|
||||
Route::post('login',[Authme::class,'Login'])->name('api.auth.login');
|
||||
|
@ -44,6 +39,8 @@
|
|||
Route::post('add', [ConsoleLink::class, 'apiConsoleAdd'])->name('api.link.console.add');
|
||||
Route::post('edit', [ConsoleLink::class, 'apiConsoleEdit'])->name('api.link.console.edit');
|
||||
Route::post('check', [ConsoleLink::class, 'apiConsoleCheck'])->name('api.link.console.check');
|
||||
Route::post('check-fail', [ConsoleLink::class, 'apiConsoleCheckFail'])->name('api.link.console.check-fail');
|
||||
Route::post('delete', [ConsoleLink::class, 'apiConsoleDelete'])->name('api.link.console.delete');
|
||||
});
|
||||
Route::prefix('custom')->group(function () {
|
||||
Route::post('add', [Link::class, 'apiCustomAdd'])->name('api.link.custom.add');
|
||||
|
|
Loading…
Reference in New Issue
Block a user