[更新]公众号参数保护,禁止修改测试参数

This commit is contained in:
Anyon 2017-04-26 11:01:46 +08:00
parent cdcacfd921
commit 8a432157ff
2 changed files with 2 additions and 0 deletions

View File

@ -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)) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB