|
@@ -854,13 +854,13 @@ class HomeController extends AbstractAction |
|
@@ -854,13 +854,13 @@ class HomeController extends AbstractAction |
854
|
break;
|
854
|
break;
|
855
|
}
|
855
|
}
|
856
|
|
856
|
|
857
|
- $totalFee = strtr($orderDetail['data']['amount'], array('¥' => ''));
|
857
|
+ $totalFee = intval(strtr($orderDetail['data']['amount'], array('¥' => ''))) * 100;
|
858
|
$openId = $this->getSession('weixinOpenId');
|
858
|
$openId = $this->getSession('weixinOpenId');
|
859
|
|
859
|
|
860
|
$tools = new JsApiPay();
|
860
|
$tools = new JsApiPay();
|
861
|
//统一下单
|
861
|
//统一下单
|
862
|
$input = new WxPayUnifiedOrder();
|
862
|
$input = new WxPayUnifiedOrder();
|
863
|
- $input->SetBody($orderDetail['data']['product_name']);
|
863
|
+ $input->SetBody('有货订单号:' . $orderCode);
|
864
|
$input->SetOut_trade_no('YOHOBuy_' . $orderCode); // 商户订单号
|
864
|
$input->SetOut_trade_no('YOHOBuy_' . $orderCode); // 商户订单号
|
865
|
$input->SetTotal_fee($totalFee);
|
865
|
$input->SetTotal_fee($totalFee);
|
866
|
$input->SetTime_start(date("YmdHis", (int) $orderDetail['data']['create_time']));
|
866
|
$input->SetTime_start(date("YmdHis", (int) $orderDetail['data']['create_time']));
|