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
hf
9 years ago
Commit
b7c07b431baa455c2d7a095f4eed6e4c3e646113
1 parent
685abf31
fixes some bugs to weixin pay
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
b7c07b4
...
...
@@ -819,14 +819,14 @@ class HomeController extends AbstractAction
public
function
weixinapiAction
()
{
do
{
if
(
!
$this
->
isAjax
())
{
break
;
}
$uid
=
$this
->
getUid
(
true
);
if
(
!
$uid
)
{
break
;
}
// if (!$this->isAjax()) {
// break;
// }
//
// $uid = $this->getUid(true);
// if (!$uid) {
// break;
// }
$orderCode
=
$this
->
get
(
'order_code'
);
if
(
empty
(
$orderCode
))
{
...
...
@@ -838,10 +838,11 @@ class HomeController extends AbstractAction
break
;
}
$result
[
'data'
]
=
isset
(
$result
[
'data'
][
'prePayData'
])
?
$result
[
'data'
][
'prePayData'
]
:
array
();
$result
[
'data'
][
'appId'
]
=
'wx049fdaa3ba9cdd7a'
;
//'wx75e5a7c0c88e45c2';
$result
[
'data'
][
'signType'
]
=
'MD5'
;
$result
[
'data'
][
'paySign'
]
=
isset
(
$result
[
'data'
][
'sign'
])
?
$result
[
'data'
][
'sign'
]
:
''
;
$this
->
echoJson
(
array
(
'code'
=>
200
,
'data'
=>
array
(
'jsApiParameters'
=>
$result
[
'data'
]))
);
}
while
(
false
);
...
...
Please
register
or
login
to post a comment