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
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
93105630d20dc9badec498f5a84ab189878b8e69
1 parent
1bf02365
第三方活动的toyota微信
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Toyota.php
yohobuy/huodong.m.yohobuy.com/application/modules/Cuxiao/controllers/Toyota.php
0 → 100644
View file @
9310563
<?php
use
Action\HuodongAction
;
class
ToyotaController
extends
HuodongAction
{
private
$callbackurl
=
'http://m.yohobuy.com/events/get?ref='
;
/**
* 获取微信跳转地址
*
* @return string
*/
public
function
getwechaturlAction
()
{
$url
=
$this
->
get
(
'url'
,
''
);
if
(
!
empty
(
$url
))
{
$host
=
parse_url
(
$url
);
if
(
true
)
//$host['host'] == 'ad.yoho.cn')
{
header
(
'location:'
.
$this
->
callbackurl
.
urlencode
(
$url
));
}
else
{
header
(
'location:http://m.yohobuy.com'
);
}
}
exit
();
}
/**
* 获取微信信息
*
* @return string
*/
public
function
getwxchatinfoAction
()
{
$callback
=
$this
->
get
(
'callback'
,
''
);
$wx_info
=
isset
(
$_COOKIE
[
'wxinfo'
])
?
$_COOKIE
[
'wxinfo'
]
:
''
;
header
(
'Content-Type: application/json; charset=utf-8;'
);
echo
$callback
,
'('
;
echo
$wx_info
;
echo
')'
;
exit
();
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment