Ejemplo n.º 1
0
 public function index($id = null)
 {
     isset($id) ? null : exit("无此账号,请输入类似网址,http://127.0.0.1/index.php/player/index/127232");
     $data["total_price"] = $this->data_model->getSumPriceByPlayerID($id);
     $data["count_price"] = $this->data_model->getCountPriceByPlayerID($id);
     $data["activeTime"] = $this->data_model->getActiveTimeByPlayerID($id);
     //激活时间
     $data["firstPayTime"] = $this->data_model->getFirstPayTimeByPlayerID($id);
     $data["lastPayTime"] = $this->data_model->getLastPayTimeByPlayerID($id);
     $data["diffUnix"] = diffUnix(human_to_unix($data["activeTime"]), human_to_unix($data["firstPayTime"]));
     $data['pay_list'] = $this->data_model->getPayByPlayerID($id);
     $data['title'] = '账号ID:' . $id . '的详细信息';
     $data["info"] = $this->player_model->playerInfo($id);
     //chart info
     $room_info = $this->match_model->getTotalPriceAndTotalCountByPlayerID($id);
     $match_info = $this->room_model->getTotalPriceAndTotalCountByPlayerID($id);
     $data['room_sum'] = $room_info['sum'];
     $data['room_count'] = $room_info['count'];
     $data['match_sum'] = $match_info['sum'];
     $data['match_count'] = $match_info['count'];
     $this->load->view('templates/header', $data);
     $this->load->view('templates/side', $data);
     $this->load->view('pages/player', $data);
     $this->load->view('pages/pay_by_id', $data);
     $this->load->view('templates/footer');
 }
Ejemplo n.º 2
0
 private function getOutline($channel = 'internal_dev', $startTime = 0, $endTime = 99999999999)
 {
     $tmpOutline = $this->fruit_model->getFruitBudgetArrayByChannel($channel, $startTime, $endTime);
     $tmpInfo = $this->fruit_model->getFruitBudgetInfoArrayByChannel($channel, $startTime, $endTime);
     return array('distHumanDate' => diffUnix($startTime, getTodayStartPointUnix() > $endTime ? getTodayStartPointUnix() : $endTime), 'chipMoney' => isset($tmpOutline->chipMoney) ? $tmpOutline->chipMoney : 0, 'getMoney' => isset($tmpOutline->getMoney) ? $tmpOutline->getMoney : 0, 'count' => isset($tmpOutline->count) ? $tmpOutline->count : 0, 'players_info' => $tmpInfo);
 }