Commit 77a53dc2 authored by luoboss's avatar luoboss
Browse files

修复仪表盘报错的问题。

添加一个新的插件事件。
No related merge requests found
Showing with 5 additions and 2 deletions
+5 -2
......@@ -159,8 +159,8 @@ class Index extends \Core\Controller\Controller {
foreach ($type as $key => $value) {
$list[$key]['title'] = $value['title'];
$list[$key]['url'] = $value['url'];
$list[$key]['tips'] = $value['tips'];
$list[$key]['url'] = $value['url'] ?? '';
$list[$key]['tips'] = $value['tips'] ?? '';
$list[$key]['list'] = \Model\Content::listContent([
'table' => 'ticket AS t',
'field' => 't.*, tm.ticket_model_name, tm.ticket_model_cid, tm.ticket_model_time_out',
......
......@@ -18,6 +18,9 @@ namespace Slice\Ticket;
class Login extends \Core\Slice\Slice{
public function before() {
//埋入登录切片插件事件
(new \Core\Plugin\Plugin())->event('loginSlice', NULL);
if(!empty($_GET['_notice_login'])){
$notice_login = $this->g('_notice_login');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment