diff --git a/Application/Admin/Controller/BehaviorLogController.class.php b/Application/Admin/Controller/BehaviorLogController.class.php index 071a1e19f..5720a6f55 100644 --- a/Application/Admin/Controller/BehaviorLogController.class.php +++ b/Application/Admin/Controller/BehaviorLogController.class.php @@ -58,8 +58,13 @@ class BehaviorLogController extends ThinkController if(empty($v['extend'])) { $data[$k]['extend'] = $v['order_id']; } - if ($v['server_id'] > 0){ + if ($v['server_id'] > 0 && !empty($v['extend'])){ $data[$k]['server_name'] = M('server', 'tab_')->where(['game_id' => $v['game_id'],'server_num' =>$v['server_id']])->getField('server_name'); + } else { + $data[$k]['server_name'] = ''; + $data[$k]['game_player_name'] = ''; + $data[$k]['game_player_id'] = ''; + } } $count = M('pay_info', 'tab_')->where($map)->count();