Showing
1 changed file
with
9 additions
and
0 deletions
@@ -83,12 +83,21 @@ class WebAction extends Controller_Abstract | @@ -83,12 +83,21 @@ class WebAction extends Controller_Abstract | ||
83 | break; | 83 | break; |
84 | } | 84 | } |
85 | 85 | ||
86 | + //读取客服开关配置 | ||
87 | + $customerServiceSwitch = $this->getCustomerServiceSwitch(); | ||
88 | + $this->_view->assign('customerServiceSwitch', $customerServiceSwitch); | ||
89 | + | ||
86 | //自动登录 | 90 | //自动登录 |
87 | if (!$isAjax) { | 91 | if (!$isAjax) { |
88 | $this->autoLogin(); | 92 | $this->autoLogin(); |
89 | } | 93 | } |
90 | } | 94 | } |
91 | 95 | ||
96 | + //客服配置 | ||
97 | + protected function getCustomerServiceSwitch() { | ||
98 | + return $this->_useSession && empty($this->getCache('customerServiceSwitch')) ? 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409' : '/service/client'; | ||
99 | + } | ||
100 | + | ||
92 | /** | 101 | /** |
93 | * 自动登录 | 102 | * 自动登录 |
94 | */ | 103 | */ |
-
Please register or login to post a comment