|
@@ -233,8 +233,8 @@ class OrderService
|
|
|
'auth_code' => $params['qrcode_nbr'],
|
|
|
];
|
|
|
try {
|
|
|
- $result = self::findAlipay('OD202408151627038Q790K', 0);
|
|
|
Pay::alipay(config('payment.alipay'))->pos($payData);
|
|
|
+ $result = self::findAlipay($params['orderGroupId'], 0);
|
|
|
} catch (\Exception $e) {
|
|
|
$log->error("ALIPAY", ['msg' => $e->getMessage()]);
|
|
|
throw new BusinessException("支付失败");
|
|
@@ -255,7 +255,7 @@ class OrderService
|
|
|
* @Date 2024/8/16 14:55
|
|
|
*
|
|
|
* @param $orderId
|
|
|
- * @param $nbr
|
|
|
+ * @param $nbr 循环次数
|
|
|
* @return mixed|void
|
|
|
* @throws BusinessException
|
|
|
*/
|
|
@@ -265,8 +265,10 @@ class OrderService
|
|
|
throw new BusinessException("订单查询失败");
|
|
|
}
|
|
|
try {
|
|
|
- $result = Pay::wechat(config('payment.wxpay'))->find($orderId, 'pos');
|
|
|
- $result = json_decode(json_encode($result), true);
|
|
|
+ if($nbr > 2) {
|
|
|
+ $result = Pay::wechat(config('payment.wxpay'))->find($orderId, 'pos');
|
|
|
+ $result = json_decode(json_encode($result), true);
|
|
|
+ }
|
|
|
} catch (\Exception $e) {
|
|
|
throw new BusinessException("订单查询失败");
|
|
|
}
|
|
@@ -285,7 +287,7 @@ class OrderService
|
|
|
* @Date 2024/8/16 15:16
|
|
|
*
|
|
|
* @param $orderId
|
|
|
- * @param $nbr
|
|
|
+ * @param $nbr 循环次数
|
|
|
* @return mixed|void
|
|
|
* @throws BusinessException
|
|
|
*/
|
|
@@ -295,8 +297,10 @@ class OrderService
|
|
|
throw new BusinessException("订单查询失败");
|
|
|
}
|
|
|
try {
|
|
|
- $result = Pay::alipay(config('payment.alipay'))->find($orderId);
|
|
|
- $result = json_decode(json_encode($result), true);
|
|
|
+ if($nbr > 2){
|
|
|
+ $result = Pay::alipay(config('payment.alipay'))->find($orderId);
|
|
|
+ $result = json_decode(json_encode($result), true);
|
|
|
+ }
|
|
|
} catch (\Exception $e) {
|
|
|
throw new BusinessException("订单查询失败");
|
|
|
}
|