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
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
8653755a8990ed75dd68660bd94c2599e210fe3a
1 parent
66f394d7
修改购物车登陆的url
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
14 deletions
library/Plugin/Helpers.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/public/index-dev.php
yohobuy/m.yohobuy.com/public/index-pre.php
yohobuy/m.yohobuy.com/public/index-test.php
yohobuy/m.yohobuy.com/public/index.php
library/Plugin/Helpers.php
View file @
8653755
...
...
@@ -24,16 +24,16 @@ class Helpers
switch
(
$module
)
{
case
'default'
:
$url
=
'
http:
//m.yohobuy.com'
;
$url
=
'//m.yohobuy.com'
;
break
;
case
'guang'
:
// 逛
$url
=
'
http:
//guang'
.
SUB_DOMAIN
;
$url
=
'//guang'
.
SUB_DOMAIN
;
break
;
case
'list'
:
// 商品列表
$url
=
'
http:
//list'
.
SUB_DOMAIN
;
$url
=
'//list'
.
SUB_DOMAIN
;
break
;
case
'search'
:
// 搜索
$url
=
'
http:
//search'
.
SUB_DOMAIN
;
$url
=
'//search'
.
SUB_DOMAIN
;
break
;
case
'index'
:
// 默认
$url
=
SITE_MAIN
;
...
...
@@ -41,7 +41,7 @@ class Helpers
case
''
:
// 相对地址
break
;
default
:
// 其它子域名
$url
=
'
http:
//'
.
$module
.
SUB_DOMAIN
;
$url
=
'//'
.
$module
.
SUB_DOMAIN
;
}
$url
.=
$uri
;
if
(
!
empty
(
$param
))
{
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
8653755
...
...
@@ -58,7 +58,8 @@ class CartModel
// 用户是否登录
if
(
empty
(
$uid
))
{
$result
[
'signurl'
]
=
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
Helpers
::
url
(
'/cart/index/index'
)));
$signurl
=
Helpers
::
url
(
'/signin.html'
,
array
(
'refer'
=>
Helpers
::
url
(
'/cart/index/index'
)));
$result
[
'signurl'
]
=
strtr
(
$signurl
,
array
(
'http://'
=>
'//'
));
$result
[
'showLoginInfo'
]
=
true
;
}
...
...
yohobuy/m.yohobuy.com/public/index-dev.php
View file @
8653755
...
...
@@ -2,8 +2,8 @@
use
Yaf\Application
;
define
(
'SITE_MAIN'
,
'http://m.dev.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'http://m.yohobuy.com'
);
// 网站旧域名
define
(
'SITE_MAIN'
,
'//m.dev.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'//m.yohobuy.com'
);
// 网站旧域名
define
(
'COOKIE_DOMAIN'
,
'.yohobuy.com'
);
// COOKIE作用域
define
(
'SUB_DOMAIN'
,
'.dev.yohobuy.com'
);
// 子域名后缀
define
(
'USE_CACHE'
,
false
);
// 缓存的开关
...
...
yohobuy/m.yohobuy.com/public/index-pre.php
View file @
8653755
...
...
@@ -2,8 +2,8 @@
use
Yaf\Application
;
define
(
'SITE_MAIN'
,
'http://m.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'http://m.yohobuy.com'
);
// 网站旧域名
define
(
'SITE_MAIN'
,
'//m.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'//m.yohobuy.com'
);
// 网站旧域名
define
(
'COOKIE_DOMAIN'
,
'.m.yohobuy.com'
);
// COOKIE作用域
define
(
'SUB_DOMAIN'
,
'.m.yohobuy.com'
);
// 子域名后缀
define
(
'USE_CACHE'
,
false
);
// 缓存的开关
...
...
yohobuy/m.yohobuy.com/public/index-test.php
View file @
8653755
...
...
@@ -2,8 +2,8 @@
use
Yaf\Application
;
define
(
'SITE_MAIN'
,
'http://m.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'http://m.yohobuy.com'
);
// 网站旧域名
define
(
'SITE_MAIN'
,
'//m.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'//m.yohobuy.com'
);
// 网站旧域名
define
(
'COOKIE_DOMAIN'
,
'.yohobuy.com'
);
// COOKIE作用域
define
(
'SUB_DOMAIN'
,
'.m.yohobuy.com'
);
// 子域名后缀
define
(
'USE_CACHE'
,
false
);
// 缓存的开关
...
...
yohobuy/m.yohobuy.com/public/index.php
View file @
8653755
...
...
@@ -2,8 +2,8 @@
use
Yaf\Application
;
define
(
'SITE_MAIN'
,
'http://m.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'http://m.yohobuy.com'
);
// 网站旧域名
define
(
'SITE_MAIN'
,
'//m.yohobuy.com'
);
// 网站主域名
define
(
'OLD_MAIN'
,
'//m.yohobuy.com'
);
// 网站旧域名
define
(
'COOKIE_DOMAIN'
,
'.yohobuy.com'
);
// COOKIE作用域
define
(
'SUB_DOMAIN'
,
'.m.yohobuy.com'
);
// 子域名后缀
define
(
'USE_CACHE'
,
true
);
// 缓存的开关
...
...
Please
register
or
login
to post a comment