Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
1e821ab7fef5994d25f30e9ac397388e00ee35d5
2 parents
226636c0
988ae634
Merge branch 'hotfix/serviceSwitch' into release/5.4.1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
library/Action/AbstractAction.php
library/Action/WebAction.php
yohobuy/www.yohobuy.com/application/models/Home/User.php
library/Action/AbstractAction.php
View file @
1e821ab
...
...
@@ -79,8 +79,7 @@ class AbstractAction extends Controller_Abstract
//客服配置
protected
function
getCustomerServiceSwitch
()
{
return
$this
->
_useSession
&&
$this
->
getCacheBy
(
'zookeeper:/pc/clientService/new'
)
===
'true'
?
'/service/client'
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409'
;
return
$this
->
_useSession
&&
$this
->
getCacheBy
(
'zookeeper:/pc/clientService/new'
)
===
'true'
?
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409'
:
'/service/client'
;
}
/**
* 封装一下获取get参数
...
...
library/Action/WebAction.php
View file @
1e821ab
...
...
@@ -95,8 +95,7 @@ class WebAction extends Controller_Abstract
//客服配置
protected
function
getCustomerServiceSwitch
()
{
return
$this
->
_useSession
&&
$this
->
getCacheBy
(
'zookeeper:/pc/clientService/new'
)
===
'true'
?
'/service/client'
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409'
;
return
$this
->
_useSession
&&
$this
->
getCacheBy
(
'zookeeper:/pc/clientService/new'
)
===
'true'
?
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409'
:
'/service/client'
;
}
/**
...
...
yohobuy/www.yohobuy.com/application/models/Home/User.php
View file @
1e821ab
...
...
@@ -45,7 +45,7 @@ class UserModel
}
public
static
function
getCustomerServiceSwitch
()
{
return
USE_CACHE
&&
Cache
::
getBy
(
'zookeeper:/pc/clientService/new'
)
===
'true'
?
'
/service/client'
:
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409
'
;
return
USE_CACHE
&&
Cache
::
getBy
(
'zookeeper:/pc/clientService/new'
)
===
'true'
?
'
http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409'
:
'/service/client
'
;
}
/**
* 个人中心-左侧导航
...
...
Please
register
or
login
to post a comment