1
0
mirror of https://gitee.com/zoujingli/ThinkAdmin.git synced 2025-04-06 03:58:04 +08:00

修改微信关键字

This commit is contained in:
Anyon 2020-06-19 10:53:46 +08:00
parent 54c47b80cd
commit 130ce4ff00

@ -59,8 +59,8 @@ class Keys extends Controller
$this->success('生成二维码成功!', "javascript:$.previewImage('{$wechat->url($result['ticket'])}')");
} catch (HttpResponseException $exception) {
throw $exception;
} catch (\Exception $e) {
$this->error("生成二维码失败,请稍候再试!<br> {$e->getMessage()}");
} catch (\Exception $exception) {
$this->error("生成二维码失败,请稍候再试!<br> {$exception->getMessage()}");
}
}
// 关键字列表显示
@ -76,8 +76,8 @@ class Keys extends Controller
protected function _index_page_filter(&$data)
{
foreach ($data as &$vo) {
$vo['type'] = $this->types[$vo['type']] ?? $vo['type'];
$vo['qrc'] = url('wechat/keys/index') . "?action=qrc&keys={$vo['keys']}";
$vo['type'] = isset($this->types[$vo['type']]) ? $this->types[$vo['type']] : $vo['type'];
}
}