mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]公众号参数保护,禁止修改测试参数
This commit is contained in:
parent
cdcacfd921
commit
8a432157ff
@ -44,6 +44,7 @@ class Config extends BasicAdmin {
|
|||||||
$this->assign('title', '微信接口配置');
|
$this->assign('title', '微信接口配置');
|
||||||
return view();
|
return view();
|
||||||
}
|
}
|
||||||
|
$this->error('矜持点,别改测试参数哦!');
|
||||||
foreach ($this->request->post() as $key => $vo) {
|
foreach ($this->request->post() as $key => $vo) {
|
||||||
sysconf($key, $vo);
|
sysconf($key, $vo);
|
||||||
}
|
}
|
||||||
@ -105,6 +106,7 @@ class Config extends BasicAdmin {
|
|||||||
return view();
|
return view();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->error('矜持点,别改测试参数哦!');
|
||||||
$data = $this->request->post();
|
$data = $this->request->post();
|
||||||
foreach ($data as $key => $vo) {
|
foreach ($data as $key => $vo) {
|
||||||
if (in_array($key, ['wechat_cert_key_md5', 'wechat_cert_cert_md5']) && !empty($vo)) {
|
if (in_array($key, ['wechat_cert_key_md5', 'wechat_cert_cert_md5']) && !empty($vo)) {
|
||||||
|
BIN
static/upload/1325ee90939a1545/05e10b79fd70fa3a.jpg
Normal file
BIN
static/upload/1325ee90939a1545/05e10b79fd70fa3a.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Loading…
x
Reference in New Issue
Block a user