Explorar o código

查看游戏分组,添加IN

ith5 hai 5 meses
pai
achega
deb53ba630
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
         }