mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
修改问题
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
#### 演示网址
|
||||
|
||||
[在线演示网址](http://ulthon-information.demo.ulthon.com/)
|
||||
[在线演示网址](http://phpreturn.com/)
|
||||
|
||||
#### 快速试用教程
|
||||
|
||||
|
||||
14
app/admin/controller/Captcha.php
Normal file
14
app/admin/controller/Captcha.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
use think\captcha\facade\Captcha as ThinkCaptcha;
|
||||
use think\Request;
|
||||
|
||||
class Captcha
|
||||
{
|
||||
public function build()
|
||||
{
|
||||
return ThinkCaptcha::create();
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,9 @@ class Post extends Common
|
||||
|
||||
$model_post = ModelPost::find($id);
|
||||
|
||||
$model_post
|
||||
$model_post->hits + 1;
|
||||
|
||||
$model_post->save();
|
||||
|
||||
View::assign('post', $model_post);
|
||||
|
||||
|
||||
@@ -22,7 +22,11 @@ return [
|
||||
// 应用映射(自动多应用模式有效)
|
||||
'app_map' => [],
|
||||
// 域名绑定(自动多应用模式有效)
|
||||
'domain_bind' => [],
|
||||
'domain_bind' => [
|
||||
'admin'=>'admin',
|
||||
'*'=>'index',
|
||||
'api'=>'api',
|
||||
],
|
||||
// 禁止URL访问的应用列表(自动多应用模式有效)
|
||||
'deny_app_list' => [],
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="captcha" required lay-verify="required"
|
||||
placeholder="请输入验证码" autocomplete="off" value="test(直接登陆即可)" class="layui-input">
|
||||
<img class="captcha" src="/api/Captcha/build" onclick="this.src = '/api/Captcha/build?v='+Math.random()" style="cursor: pointer;width:
|
||||
<img class="captcha" src="/Captcha/build" onclick="this.src = '/Captcha/build?v='+Math.random()" style="cursor: pointer;width:
|
||||
100%;" alt="">
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user