作者 王智

xiugai

... ... @@ -193,7 +193,7 @@ class GuanYiCloud extends Api
//交易号
'pay_code' => $PayOrder,
//支付时间
'paytime' => ''
'paytime' => $PayTime
);
$data['payments'] = $payments;
$invoices = array();
... ...
... ... @@ -149,7 +149,7 @@ class Pay extends Api
$details[$k]['price'] = $v['price'];
$details[$k]['oid'] = $PayOrderInfo['OrderSn'];
}
$GuanYiCloud->addOrder($PayOrderInfo['OrderSn'], date('Y-m-d H:i:s', $OrderInfo['createtime']), $PayOrderInfo['pay_time'], $UnionID, $OrderInfo['name'], $OrderInfo['mobile'], $OrderInfo['address'] . '/' . $OrderInfo['address_con'], $City[0], $City[1], $City[2], $details, $PayOrderInfo['money'], $PayOrderInfo['PayOrder']);
$GuanYiCloud->addOrder($PayOrderInfo['OrderSn'], date('Y-m-d H:i:s', $OrderInfo['createtime']), $PayOrderInfo['pay_time']*1000, $UnionID, $OrderInfo['name'], $OrderInfo['mobile'], $OrderInfo['address'] . '/' . $OrderInfo['address_con'], $City[0], $City[1], $City[2], $details, $PayOrderInfo['money'], $PayOrderInfo['PayOrder']);
//是否首次下单
$FirstPay = Db::name('order')->where('OrderSn', 'NEQ', $PayOrderInfo['OrderSn'])->where('status', 'IN', '1,2,3,4,5')->find();
if (empty($FirstPay)) {
... ...