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
biao
2016-05-27 18:54:57 +0800
Commit
a3fbc1abe1902a8a3be0561e8dfdc8571e2537fe
2 parents
a7b2e023
2f680a89
Merge branch 'hotfix/life'
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
static/dist/myohobuy/1.3.26/index.css
static/js/plugin/wx-share.js
yohobuy/m.yohobuy.com/application/controllers/Life.php
static/dist/myohobuy/1.3.26/index.css
View file @
a3fbc1a
This diff could not be displayed because it is too large.
static/js/plugin/wx-share.js
View file @
a3fbc1a
...
...
@@ -7,7 +7,7 @@
var
$
=
require
(
'jquery'
);
module
.
exports
=
function
()
{
var
_weChatInterface
=
'
http://www.yohoshow.com/api/wechat
/getSignPackage'
;
var
_weChatInterface
=
'
/life
/getSignPackage'
;
$
.
getJSON
(
_weChatInterface
+
'?pageurl='
+
encodeURIComponent
(
location
.
href
.
split
(
'#'
)[
0
])
+
'&callback=?'
,
function
(
json
)
{
var
_appId
,
_timestamp
,
_nonceStr
,
_signature
;
...
...
yohobuy/m.yohobuy.com/application/controllers/Life.php
View file @
a3fbc1a
...
...
@@ -76,4 +76,15 @@ class LifeController extends AbstractAction
'couponPage'
=>
true
));
}
public
function
getSignPackageAction
()
{
$curl
=
'http://www.yohoshow.com/api/wechat/getSignPackage'
;
$pageurl
=
$this
->
get
(
'pageurl'
,
''
);
$callback
=
$this
->
get
(
'callback'
,
''
);
$url
=
$curl
.
'?pageurl='
.
urlencode
(
$pageurl
)
.
"&callback="
.
$callback
;
$res
=
file_get_contents
(
$url
);
echo
$res
;
exit
;
}
}
...
...
Please
register
or
login
to post a comment