|
|
@@ -202,6 +202,7 @@ class StoreOrderController
|
|
|
$orderInfo = $orderInfo->toArray();
|
|
|
if ($orderInfo['paid']) return app('json')->fail('支付已支付!');
|
|
|
//支付金额为0
|
|
|
+ @file_put_contents('quanju2.txt', "-到这里了吗\r\n", 8);
|
|
|
if (bcsub((float)$orderInfo['pay_price'], 0, 2) <= 0) {
|
|
|
//创建订单jspay支付
|
|
|
$payPriceStatus = StoreOrder::jsPayPrice($orderId, $uid, $formId);
|
|
|
@@ -214,7 +215,7 @@ class StoreOrderController
|
|
|
|
|
|
} else {
|
|
|
try {
|
|
|
- @file_put_contents('quanju.txt', $from."-微信支付方式\r\n", 8);
|
|
|
+ @file_put_contents('quanju2.txt', $from."-微信支付方式\r\n", 8);
|
|
|
if ($from == 'routine') {
|
|
|
$jsConfig = OrderRepository::jsPay($orderId); //创建订单jspay
|
|
|
} else if ($from == 'weixinh5') {
|
|
|
@@ -222,9 +223,9 @@ class StoreOrderController
|
|
|
} else {
|
|
|
$jsConfig = OrderRepository::wxPay($orderId);
|
|
|
}
|
|
|
- @file_put_contents('quanju.txt', $jsConfig."-微信支付失败2\r\n", 8);
|
|
|
+ @file_put_contents('quanju2.txt', $jsConfig."-微信支付失败2\r\n", 8);
|
|
|
} catch (\Exception $e) {
|
|
|
- @file_put_contents('quanju.txt', $e->getMessage()."-微信支付失败\r\n", 8);
|
|
|
+ @file_put_contents('quanju2.txt', $e->getMessage()."-微信支付失败\r\n", 8);
|
|
|
return app('json')->status('pay_error', $e->getMessage(), $info);
|
|
|
}
|
|
|
$info['jsConfig'] = $jsConfig;
|