|
@@ -19,7 +19,7 @@ class Index extends Backend
|
|
|
{
|
|
|
|
|
|
protected $noNeedLogin = ['login','login_sms'];
|
|
|
- protected $noNeedRight = ['index', 'logout'];
|
|
|
+ protected $noNeedRight = ['index', 'logout','kefu'];
|
|
|
protected $layout = '';
|
|
|
|
|
|
public function _initialize()
|
|
@@ -52,10 +52,15 @@ class Index extends Backend
|
|
|
$this->view->assign('fixedmenu', $fixedmenu);
|
|
|
$this->view->assign('referermenu', $referermenu);
|
|
|
$this->view->assign('title', __('Home'));
|
|
|
- //$this->view->assign('kf_url', Qiyu::instance()->login($this->admin()));
|
|
|
return $this->view->fetch();
|
|
|
}
|
|
|
|
|
|
+ public function kefu(){
|
|
|
+ return json([
|
|
|
+ 'url'=>Qiyu::instance()->login($this->admin()),
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 管理员登录
|
|
|
*/
|