فهرست منبع

查看游戏分组,添加IN

ith5 5 ماه پیش
والد
کامیت
deb53ba630
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/v1/logic/center/GameGroupLogic.php

+ 1 - 1
app/v1/logic/center/GameGroupLogic.php

@@ -29,7 +29,7 @@ class GameGroupLogic extends BaseLogic
         $data = $this->model->where('id', $id)->find();
         $gameIds = explode(',', $data['game_list']);
 
-        $gameList =  Db::connect('db_center')->table('pf_game')->where("id", $gameIds)->column('name', 'id');
+        $gameList =  Db::connect('db_center')->table('pf_game')->where("id", 'in', $gameIds)->column('name', 'id');
         foreach ($gameList as $id => &$name) {
             $name = '[' . $id . ']' . $name;
         }