Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
8f19caa857c71507e986272da092fd58d0fe2f04
2 parents
a7f9d94b
9bc83e01
Merge branch 'master' into feature/yohoCoin
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
library/Plugin/Pay/weixin/JsApiPay.php
static/js/common.js
static/js/index/footer.js
yohobuy/m.yohobuy.com/application/Bootstrap.php
library/Plugin/Pay/weixin/JsApiPay.php
View file @
8f19caa
...
...
@@ -53,7 +53,7 @@ class JsApiPay
//通过code获得openid
if
(
!
isset
(
$_GET
[
'code'
]))
{
//触发微信返回code码
$baseUrl
=
urlencode
(
'http://
'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'REQUEST_URI'
]);
$baseUrl
=
urlencode
(
'http://
m.yohobuy.com'
.
$_SERVER
[
'REQUEST_URI'
]);
$url
=
$this
->
__CreateOauthUrlForCode
(
$baseUrl
);
Header
(
"Location:
$url
"
);
exit
();
...
...
@@ -164,7 +164,7 @@ class JsApiPay
$getData
=
$this
->
data
;
$data
=
array
();
$data
[
"appid"
]
=
WxPayConfig
::
APPID
;
$data
[
"url"
]
=
"http://
"
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'REQUEST_URI'
];
$data
[
"url"
]
=
"http://
m.yohobuy.com"
.
$_SERVER
[
'REQUEST_URI'
];
$time
=
time
();
$data
[
"timestamp"
]
=
"
$time
"
;
$data
[
"noncestr"
]
=
"1234568"
;
...
...
static/js/common.js
View file @
8f19caa
...
...
@@ -211,8 +211,8 @@ function reMarginFooter(fixedElement) {
$footer
.
removeClass
(
'hide'
);
// 接受微信商城或者第三方来源的数据埋点信息
if
(
$
.
queryString
().
mkt_code
)
{
setCookie
(
'mkt_code'
,
$
.
queryString
().
mkt_code
);
if
(
$
.
queryString
().
union_type
)
{
setCookie
(
'unionTypeYas'
,
$
.
queryString
().
union_type
,
{
'path'
:
'/'
});
}
}());
...
...
static/js/index/footer.js
View file @
8f19caa
...
...
@@ -19,7 +19,7 @@ function downLoadApp() {
var
clickedAt
=
new
Date
();
setTimeout
(
function
()
{
var
mkt
=
window
.
queryString
.
mkt_code
||
window
.
cookie
(
'mkt_code
'
)
||
false
;
var
mkt
=
window
.
queryString
.
union_type
||
window
.
cookie
(
'unionTypeYas
'
)
||
false
;
if
((
new
Date
())
-
clickedAt
<
2000
)
{
if
(
mkt
)
{
...
...
yohobuy/m.yohobuy.com/application/Bootstrap.php
View file @
8f19caa
...
...
@@ -76,6 +76,7 @@ class Bootstrap extends Bootstrap_Abstract
$subDomain
=
strval
(
$hostParts
[
0
]);
switch
(
strtolower
(
$subDomain
))
{
case
'm'
:
// 老版(到频道选择)
case
'cdnsrcm'
:
// 主站CDN回源
case
'buy'
:
// 测试环境的域名, 以后可去掉
case
'login'
:
// 登录
break
;
...
...
Please
register
or
login
to post a comment