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
809900ecf64f0408276e4ad024a7f2ebc192557c
1 parent
9868a65c
do add weixin pay call api auth sign
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
809900e
...
...
@@ -856,9 +856,12 @@ class HomeController extends AbstractAction
$totalFee
=
intval
(
strtr
(
$orderDetail
[
'data'
][
'amount'
],
array
(
'¥'
=>
''
)))
*
100
;
$openId
=
$this
->
getSession
(
'weixinOpenId'
);
if
(
empty
(
$openId
))
{
break
;
}
$tools
=
new
JsApiPay
();
//统一下单
$tools
=
new
JsApiPay
();
$input
=
new
WxPayUnifiedOrder
();
$input
->
SetBody
(
'有货订单号:'
.
$orderCode
);
$input
->
SetOut_trade_no
(
'YOHOBuy_'
.
$orderCode
);
// 商户订单号
...
...
Please
register
or
login
to post a comment