code review by fei.hong: do modify live800 link to add user info parameters
Showing
1 changed file
with
9 additions
and
9 deletions
@@ -456,16 +456,16 @@ class HomeController extends AbstractAction | @@ -456,16 +456,16 @@ class HomeController extends AbstractAction | ||
456 | $this->setTitle('在线客服'); | 456 | $this->setTitle('在线客服'); |
457 | $this->setNavHeader('在线客服', Helpers::url('/home'), SITE_MAIN); | 457 | $this->setNavHeader('在线客服', Helpers::url('/home'), SITE_MAIN); |
458 | 458 | ||
459 | - //$uid = $this->getUid(false); | 459 | + $uid = $this->getUid(false); |
460 | $service = Home\OnlineModel::getOnlineServiceInfo(); | 460 | $service = Home\OnlineModel::getOnlineServiceInfo(); |
461 | - $serviceUrl = 'http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&configID=123576&jid=9277320930'; | ||
462 | -// // 在线客服 | ||
463 | -// $serviceUrl = 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='; | ||
464 | -// if ($uid) { | ||
465 | -// $time = time() . '000'; | ||
466 | -// $info = 'userId=' . $uid . '&name=' . $this->_uname . '&memo=&hashCode=' . md5(rawurlencode($uid . $this->_uname . $time . '1231')) . '×tamp=' . $time; | ||
467 | -// $serviceUrl .= rawurlencode($info); | ||
468 | -// } | 461 | + //$serviceUrl = 'http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&configID=123576&jid=9277320930'; |
462 | + // 在线客服 | ||
463 | + $serviceUrl = 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info='; | ||
464 | + if ($uid) { | ||
465 | + $time = time() . '000'; | ||
466 | + $info = 'userId=' . $uid . '&name=' . $this->_uname . '&memo=&hashCode=' . md5(rawurlencode($uid . $this->_uname . $time . '1231')) . '×tamp=' . $time; | ||
467 | + $serviceUrl .= rawurlencode($info); | ||
468 | + } | ||
469 | 469 | ||
470 | $this->_view->display('online-service', array( | 470 | $this->_view->display('online-service', array( |
471 | 'onlineServicePage' => true, | 471 | 'onlineServicePage' => true, |
-
Please register or login to post a comment