|
@@ -67,12 +67,12 @@ class ChatBuy extends BaseController
|
|
|
|
|
|
|
|
if (!$result) {
|
|
if (!$result) {
|
|
|
// 支付失败,取消订单
|
|
// 支付失败,取消订单
|
|
|
- ChatOrder::cancelOrder($order->id);
|
|
|
|
|
|
|
+ ChatOrder::cancelOrder((int)$order->id);
|
|
|
return app('json')->fail('支付失败');
|
|
return app('json')->fail('支付失败');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 更新订单状态
|
|
// 更新订单状态
|
|
|
- ChatOrder::paySuccess($order->id);
|
|
|
|
|
|
|
+ ChatOrder::paySuccess((int)$order->id);
|
|
|
|
|
|
|
|
$newBalance = ChatBalanceService::getBalance($userId);
|
|
$newBalance = ChatBalanceService::getBalance($userId);
|
|
|
|
|
|