seven před 1 dnem
rodič
revize
7fba32dce4

+ 2 - 0
app/Http/Controllers/admin/Issue.php

@@ -104,6 +104,8 @@ class Issue extends Controller
     {
         $id = request()->input('id');
         $winning_numbers = request()->input('winning_numbers');
+        $image = request()->input('image');
+        $combo = request()->input('combo');
         if (!$id) {
             return $this->error(HttpStatus::VALIDATION_FAILED, '参数错误');
         }

+ 1 - 1
app/Models/Issue.php

@@ -17,7 +17,7 @@ class Issue extends Authenticatable
     use HasApiTokens, Notifiable;
     protected $table = 'issues';
     // protected $hidden = ['created_at', 'updated_at'];
-    protected $fillable = ['issue_no', 'start_time', 'end_time' ,'winning_numbers' ,'status' ];
+    protected $fillable = ['issue_no', 'start_time', 'end_time' ,'winning_numbers' ,'status' ,'combo', 'extreme', 'image'];
 
     const STATUS_DRAFT = 0;
     const STATUS_BETTING = 1;

+ 6 - 2
app/Services/IssueService.php

@@ -209,10 +209,12 @@ class IssueService extends BaseService
     /**
      * @description: 开奖
      * @param {*} $id
-     * @param {*} $winning_numbers
+     * @param {*} $winning_numbers 开奖号码
+     * @param {*} $combo 开奖组合
+     * @param {*} $image 开奖图片
      * @return {*}
      */
-    public static function  lotteryDraw($id, $winning_numbers)
+    public static function  lotteryDraw($id, $winning_numbers ,$combo ,$image)
     {
         $info = self::findOne(['id'=>$id]);
         if(!$info){
@@ -229,6 +231,8 @@ class IssueService extends BaseService
         try {
             $info->status = self::model()::STATUS_DRAW;
             $info->winning_numbers = $winning_numbers;
+            $info->combo = $combo;
+            $info->image = $image;
             $info->save();
             BetService::betSettled($info->issue_no, $awards);
 

+ 3 - 1
sql/sql_prod.sql

@@ -87,7 +87,7 @@ INSERT INTO `bot_config` VALUES (7, 'channel_message', '{\"chatId\":\"oooluckych
 
 INSERT INTO `bot_config` VALUES (8, 'betting_group', '+8jhXv9Eb-oRmZDY1', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '投注群');
 INSERT INTO `bot_config` VALUES (9, 'rebate', '0', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '返佣比例');
-INSERT INTO `bot28`.`bot_config` (`id`, `field`, `val`, `updated_at`, `created_at`, `remark`) VALUES ('10', 'official_channel', 'ABCDE_123y', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '官方频道');
+INSERT INTO `bot_config` (`id`, `field`, `val`, `updated_at`, `created_at`, `remark`) VALUES ('10', 'official_channel', 'ABCDE_123y', '2025-07-07 17:48:06', '2025-07-07 17:48:06', '官方频道');
 
 
 -- ----------------------------
@@ -467,6 +467,8 @@ CREATE TABLE `bot_issues` (
 ALTER TABLE `bot_issues`
 ADD COLUMN `combo`  varchar(20) NULL AFTER `updated_at`,
 ADD COLUMN `extreme`  varchar(20) NULL COMMENT '极值' AFTER `combo`;
+ALTER TABLE `bot_issues`
+ADD COLUMN `image`  varchar(255) NULL COMMENT '开奖图片' AFTER `extreme`;
 
 
 -- ----------------------------