切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
5 years ago
提交
e14008ca029d644e2486873fa22629a1d62a7380
1 个父辈
4bb4425d
修复邮箱验证码错误
修复排序表名安全检测 修复Selectpage编辑时分页大小错误
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
12 行增加
和
4 行删除
application/admin/controller/Ajax.php
application/common/controller/Backend.php
application/index/controller/User.php
application/admin/controller/Ajax.php
查看文件 @
e14008c
...
...
@@ -9,6 +9,7 @@ use think\Cache;
use
think\Config
;
use
think\Db
;
use
think\Lang
;
use
think\Validate
;
/**
* Ajax异步请求接口
...
...
@@ -155,6 +156,9 @@ class Ajax extends Backend
$field
=
$this
->
request
->
post
(
"field"
);
//操作的数据表
$table
=
$this
->
request
->
post
(
"table"
);
if
(
!
Validate
::
is
(
$table
,
"alphaDash"
))
{
$this
->
error
();
}
//主键
$pk
=
$this
->
request
->
post
(
"pk"
);
//排序的方式
...
...
@@ -214,16 +218,19 @@ class Ajax extends Backend
case
'content'
:
rmdirs
(
CACHE_PATH
,
false
);
Cache
::
clear
();
if
(
$type
==
'content'
)
if
(
$type
==
'content'
)
{
break
;
}
case
'template'
:
rmdirs
(
TEMP_PATH
,
false
);
if
(
$type
==
'template'
)
if
(
$type
==
'template'
)
{
break
;
}
case
'addons'
:
Service
::
refresh
();
if
(
$type
==
'addons'
)
if
(
$type
==
'addons'
)
{
break
;
}
}
\think\Hook
::
listen
(
"wipecache_after"
);
...
...
application/common/controller/Backend.php
查看文件 @
e14008c
...
...
@@ -451,6 +451,7 @@ class Backend extends Controller
//如果有primaryvalue,说明当前是初始化传值
if
(
$primaryvalue
!==
null
)
{
$where
=
[
$primarykey
=>
[
'in'
,
$primaryvalue
]];
$pagesize
=
null
;
}
else
{
$where
=
function
(
$query
)
use
(
$word
,
$andor
,
$field
,
$searchfield
,
$custom
)
{
$logic
=
$andor
==
'AND'
?
'&'
:
'|'
;
...
...
application/index/controller/User.php
查看文件 @
e14008c
...
...
@@ -119,7 +119,7 @@ class User extends Frontend
if
(
$captchaType
==
'mobile'
)
{
$captchaResult
=
Sms
::
check
(
$mobile
,
$captcha
,
'register'
);
}
elseif
(
$captchaType
==
'email'
)
{
$captchaResult
=
Ems
::
check
(
$
mobile
,
$captcha
,
'register'
);
$captchaResult
=
Ems
::
check
(
$
email
,
$captcha
,
'register'
);
}
elseif
(
$captchaType
==
'wechat'
)
{
$captchaResult
=
WechatCaptcha
::
check
(
$captcha
,
'register'
);
}
elseif
(
$captchaType
==
'text'
)
{
...
...
请
注册
或
登录
后发表评论