mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-03 23:46:49 +08:00
Merge branch 'koogua/v1.6.9'
This commit is contained in:
commit
c355709d03
@ -8,9 +8,7 @@
|
|||||||
namespace App\Http\Admin\Controllers;
|
namespace App\Http\Admin\Controllers;
|
||||||
|
|
||||||
use App\Http\Admin\Services\AlipayTest as AlipayTestService;
|
use App\Http\Admin\Services\AlipayTest as AlipayTestService;
|
||||||
use App\Http\Admin\Services\Setting as SettingService;
|
|
||||||
use App\Http\Admin\Services\WxpayTest as WxpayTestService;
|
use App\Http\Admin\Services\WxpayTest as WxpayTestService;
|
||||||
use App\Services\Captcha as CaptchaService;
|
|
||||||
use App\Services\DingTalkNotice as DingTalkNoticeService;
|
use App\Services\DingTalkNotice as DingTalkNoticeService;
|
||||||
use App\Services\Live as LiveService;
|
use App\Services\Live as LiveService;
|
||||||
use App\Services\Logic\Notice\External\Mail\Test as MailTestService;
|
use App\Services\Logic\Notice\External\Mail\Test as MailTestService;
|
||||||
@ -152,30 +150,6 @@ class TestController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @Post("/captcha", name="admin.test.captcha")
|
|
||||||
*/
|
|
||||||
public function captchaAction()
|
|
||||||
{
|
|
||||||
$post = $this->request->getPost();
|
|
||||||
|
|
||||||
$captchaService = new CaptchaService();
|
|
||||||
|
|
||||||
$result = $captchaService->verify($post['ticket'], $post['rand']);
|
|
||||||
|
|
||||||
if ($result) {
|
|
||||||
|
|
||||||
$settingService = new SettingService();
|
|
||||||
|
|
||||||
$settingService->updateSettings('captcha', ['enabled' => 1]);
|
|
||||||
|
|
||||||
return $this->jsonSuccess(['msg' => '后台验证成功']);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
return $this->jsonError(['msg' => '后台验证失败']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Get("/alipay", name="admin.test.alipay")
|
* @Get("/alipay", name="admin.test.alipay")
|
||||||
*/
|
*/
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<input class="layui-input" type="text" name="logo" placeholder="请确保存储已正确配置" value="{{ site.logo }}">
|
<input class="layui-input" type="text" name="logo" placeholder="请确保存储已正确配置" value="{{ site.logo }}">
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<button class="layui-btn" type="button" id="upload-logo">上传文件</button>
|
<button class="layui-btn" type="button" id="upload-logo">上传</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
<input class="layui-input" type="text" name="favicon" placeholder="请确保存储已正确配置" value="{{ site.favicon }}">
|
<input class="layui-input" type="text" name="favicon" placeholder="请确保存储已正确配置" value="{{ site.favicon }}">
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<button class="layui-btn" type="button" id="upload-favicon">上传文件</button>
|
<button class="layui-btn" type="button" id="upload-favicon">上传</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user