...
|
...
|
@@ -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']));
|
...
|
...
|
|