WIN-2308041133\Administrator 1 tháng trước cách đây
mục cha
commit
edac97d358
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/api/controller/ChatBuy.php

+ 2 - 2
app/api/controller/ChatBuy.php

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