Ken 2 天之前
父節點
當前提交
15eb40fb5f
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 7 0
      app/Services/BetService.php
  2. 1 1
      database/migrations/2025_11_20_145643_update_rebates.php

+ 7 - 0
app/Services/BetService.php

@@ -14,6 +14,7 @@ use Illuminate\Support\Facades\Cache;
 use App\Jobs\SendTelegramMessageJob;
 use App\Jobs\SendTelegramGroupMessageJob;
 use Exception;
+use Illuminate\Support\Facades\Log;
 
 /**
  * 投注
@@ -235,6 +236,12 @@ class BetService extends BaseService
             DB::commit();
         } catch (Exception $e) {
             DB::rollBack();
+            Log::error('错误信息', [
+                'message' => $e->getMessage(),
+                'file' => $e->getFile(),
+                'line' => $e->getLine(),
+                'trace' => $e->getTraceAsString()
+            ]);
             $msg['text'] = "投注失败,请联系管理员";
             if ($messageId) {
                 $msg['reply_to_message_id'] = $messageId;

+ 1 - 1
database/migrations/2025_11_20_145643_update_rebates.php

@@ -15,7 +15,7 @@ return new class extends Migration {
         Schema::table('rebates', function (Blueprint $table) {
             $table->decimal('profit', 10, 2)->default(0)->comment('当日输赢');
             $table->decimal('huishui_percentage', 10, 2)->default(0)->comment('回水比例');
-            $table->decimal('huishui_restriction', 10, 2)->default(0)->comment('回水限制值');
+            $table->decimal('huishui_restriction', 20, 2)->default(0)->comment('回水限制值');
         });
 
 //