作者 王智

xiugai

@@ -193,7 +193,7 @@ class GuanYiCloud extends Api @@ -193,7 +193,7 @@ class GuanYiCloud extends Api
193 //交易号 193 //交易号
194 'pay_code' => $PayOrder, 194 'pay_code' => $PayOrder,
195 //支付时间 195 //支付时间
196 - 'paytime' => '' 196 + 'paytime' => $PayTime
197 ); 197 );
198 $data['payments'] = $payments; 198 $data['payments'] = $payments;
199 $invoices = array(); 199 $invoices = array();
@@ -149,7 +149,7 @@ class Pay extends Api @@ -149,7 +149,7 @@ class Pay extends Api
149 $details[$k]['price'] = $v['price']; 149 $details[$k]['price'] = $v['price'];
150 $details[$k]['oid'] = $PayOrderInfo['OrderSn']; 150 $details[$k]['oid'] = $PayOrderInfo['OrderSn'];
151 } 151 }
152 - $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']); 152 + $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']);
153 //是否首次下单 153 //是否首次下单
154 $FirstPay = Db::name('order')->where('OrderSn', 'NEQ', $PayOrderInfo['OrderSn'])->where('status', 'IN', '1,2,3,4,5')->find(); 154 $FirstPay = Db::name('order')->where('OrderSn', 'NEQ', $PayOrderInfo['OrderSn'])->where('status', 'IN', '1,2,3,4,5')->find();
155 if (empty($FirstPay)) { 155 if (empty($FirstPay)) {