解绑手机

master
liuweiwen 5 years ago
parent 1a9b90d5cc
commit 3c6ca71bb6

@ -76,12 +76,12 @@ class GameModel extends Model{
*/
public function detail($id,$display_site=''){
/* 获取基础数据 */
$map['relation_game_id']=$id;
$map['relation_game_id'] = $id;
$map['game_status'] = 1;
$map['display_site'] = ['like','%'.$display_site.'%'];
$info = $this->field(true)->where($map)->group('relation_game_id')->select();
$info= game_merge($info,$map);
$info=reset($info);
$info = game_merge($info,$map);
$info = reset($info);
if(!(is_array($info) || $info['game_status']!=1)){
$this->error = '游戏被禁用或已删除!';
return false;

Loading…
Cancel
Save