Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
67ca323d1462399464d3938358f8a85397389d72
1 parent
f5e80c23
do add union codes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/controllers/Home.php
yohobuy/m.yohobuy.com/configs/routes.index.ini
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
67ca323
...
...
@@ -854,13 +854,13 @@ class HomeController extends AbstractAction
break
;
}
$totalFee
=
strtr
(
$orderDetail
[
'data'
][
'amount'
],
array
(
'¥'
=>
''
))
;
$totalFee
=
intval
(
strtr
(
$orderDetail
[
'data'
][
'amount'
],
array
(
'¥'
=>
''
)))
*
100
;
$openId
=
$this
->
getSession
(
'weixinOpenId'
);
$tools
=
new
JsApiPay
();
//统一下单
$input
=
new
WxPayUnifiedOrder
();
$input
->
SetBody
(
$orderDetail
[
'data'
][
'product_name'
]
);
$input
->
SetBody
(
'有货订单号:'
.
$orderCode
);
$input
->
SetOut_trade_no
(
'YOHOBuy_'
.
$orderCode
);
// 商户订单号
$input
->
SetTotal_fee
(
$totalFee
);
$input
->
SetTime_start
(
date
(
"YmdHis"
,
(
int
)
$orderDetail
[
'data'
][
'create_time'
]));
...
...
yohobuy/m.yohobuy.com/configs/routes.index.ini
View file @
67ca323
...
...
@@ -159,7 +159,7 @@ routes.cart.type = "rewrite"
routes.cart.match
=
"/home/orders/detail$"
routes.cart.route.module
=
Index
routes.cart.route.controller
=
Home
routes.cart.route.action
=
home
detail
routes.cart.route.action
=
Order
detail
; 微信支付接口
routes.weixinapi.type
=
"rewrite"
...
...
Please
register
or
login
to post a comment