$order['order_id'], 'out_refund_no' => 'BO' . time(), 'amount' => [ 'refund' => $totalFee, 'total' => (int)bcmul($order['pay_price'], 100), 'currency' => 'CNY', ], ]; $res = $wechat->wechat->refund($order); if ($res['status'] == 'PROCESSING') { return true; } return false; } catch (\Exception $e) { \support\Log::info($e->extra['message'] ?? $e->getMessage()); throw new BusinessException($e->extra['message'] ?? $e->getMessage()); } } }