Authored by hf

do add union codes

... ... @@ -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']));
... ...
... ... @@ -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 = homedetail
routes.cart.route.action = Orderdetail
; 微信支付接口
routes.weixinapi.type = "rewrite"
... ...