Kaynağa Gözat

updte:fix bug

aiden 3 ay önce
ebeveyn
işleme
06f10cb2ad
2 değiştirilmiş dosya ile 11 ekleme ve 1 silme
  1. 1 1
      app/controller/GameRecord.php
  2. 10 0
      app/model/GameModel.php

+ 1 - 1
app/controller/GameRecord.php

@@ -94,7 +94,7 @@ class GameRecord extends BaseController
                 $item['game_title'] = $gameInfo['title'] ?? '';
                 $item['game_type_text'] = CommonUtils::getGameTypeConfig($item['game_type']);
                 $item['c_count'] = count($childOrderList[$thirdGid] ?? []);
-                $item['view_layout_url'] = $GLOBALS['gameGameLayoutDomain'] . "/{$game_id}.html?sid={$thirdGid}&pf=1&lang=zh&api=".Request::host()."%2Fweb-api%2Fgame-proxy%2Fv2%2FBetDetails%2FGet";
+                $item['view_layout_url'] = $GLOBALS['gameGameLayoutDomain'] . "/{$game_id}.html?sid={$thirdGid}&pf=1&lang=zh&api=".Request::host()."%2Fgame_record%2Flayout";
 
                 $children = [];
                 if (isset($childOrderList[$thirdGid])) {

+ 10 - 0
app/model/GameModel.php

@@ -231,6 +231,16 @@ class GameModel extends Model
             ->update($data);
     }
 
+    /**
+     * 更新游戏状态
+     */
+    public static function updateGameStatus($merchantId, $ids, $status)
+    {
+       return self::whereIn('id', $ids)
+            ->where('merchant_id', $merchantId)
+            ->update(['status' => $status]);
+    }    
+
     /**
      * 获取所有游戏平台
      */