Merge branch 'master' of git.mycht.cn:developers/information-system

hotfix/远程访问多媒体中心
尹诚诚 8 years ago
commit e111d2cd6b

@ -102,7 +102,9 @@ class Keyworlds extends CI_Controller {
$data['rank_json'] .='{"name":"' . $ra[$data_time[0]]->kw_keyworlds . '","data":[';
// 每个点
foreach ($ra as $v) {
$kwr_rank = $v->kwr_rank ? $v->kwr_rank : 'null';
$kwr_rank = (intval($v->kwr_rank) > 0) ? $v->kwr_rank : "null";
$kwr_rank = ($v->kwr_rank==151) ? "null" : $v->kwr_rank;
$kwr_rank = trim($kwr_rank)=="" ? "null" : $kwr_rank;
if ($v->kwr_rank == '>150') {
$kwr_rank = 100;
}
@ -114,7 +116,9 @@ class Keyworlds extends CI_Controller {
if ($data['wordcount'] == 1) {
$data['rank_json'] .='{"name":"' . $ra[$data_time[0]]->kw_keyworlds . '(mobile)","data":[';
foreach ($ra as $v) {
$kwr_mobile_rank = $v->kwr_mobile_rank ? $v->kwr_mobile_rank : 'null' ;
$kwr_mobile_rank = (intval($v->kwr_mobile_rank) > 0) ? $v->kwr_mobile_rank : "null" ;
$kwr_mobile_rank = ($v->kwr_mobile_rank==151) ? "null" : $v->kwr_mobile_rank;
$kwr_mobile_rank = trim($kwr_mobile_rank)=="" ? "null" : $kwr_mobile_rank;
if ($v->kwr_mobile_rank == '>150') {
$kwr_mobile_rank = 100;
}
@ -334,7 +338,7 @@ class Keyworlds extends CI_Controller {
$add = $this->Keywordsrank_model->add_rank($kw_id, $rank['rank'], $rank['rank_m'], $rank['source'], $rank['source_m'], $rank['engines']);
}
// rank 变化
if ($client_flag === 'PC') {
if ($client_flag === 'PC' && trim($last_rank[0]->kwr_rank) != "") {
$this->load->model('InfoSMS_model');
$last_rank_pc = isset($last_rank[0]) ? $last_rank[0]->kwr_rank : $rank['rank'];
$this->InfoSMS_model->readed_for_info($kw_id, 'keywords_rank');
@ -421,7 +425,7 @@ class Keyworlds extends CI_Controller {
$add = $this->Keywordsrank_model->add_rank($v->kw_id, $rank['rank'], $rank['rank_m'], $rank['source'], $rank['source_m'], $rank['engines']);
}
// rank 变化
if ($client_flag === 'PC') {
if ($client_flag === 'PC' && trim($last_rank_pc[0]->kwr_rank) != "") {
$this->load->model('InfoSMS_model');
$last_rank_pc = isset($last_rank_pc[0]) ? $last_rank_pc[0]->kwr_rank : $rank['rank'];
$this->InfoSMS_model->readed_for_info($v->kw_id, 'keywords_rank');

@ -27,9 +27,9 @@ class search extends CI_Controller{
$back_data = $this->get_http($url);
//特殊车次处理(贵阳 -- 重庆)
if(($fromStation == 'GIW') && ($toStation == 'CQW') && (strtotime($train_date) - strtotime('2018-01-16') >= 0)){
/*if(($fromStation == 'GIW') && ($toStation == 'CQW') && (strtotime($train_date) - strtotime('2018-01-16') >= 0)){
exit('{"httpstatus":200,"reason":"特殊车次不开车","data":{"result":""}}');
}
}*/
$firstdata = $back_data;
$return_data = new stdClass();

@ -43,6 +43,7 @@
<div id="zhexiantu" class="span12" style="height:<?php if($wordcount==1) {echo '620px';}else{echo '1000px;';} ?>;margin-left:0;padding-right: 15px;"></div>
<?php } if (!empty($rank_info)) { ?>
<legend>排名情况</legend>
<!-- if 151, null ? -->
<table class="table table-striped">
<thead>
<tr>
@ -53,7 +54,6 @@
</tr>
</thead>
<tbody>
<!-- <?php echo "test"; ?> -->
<?php $ki=0; foreach ($rank_info as $k=>$rank) { ?>
<tr>
<td><?php echo ++$ki; ?></td>

Loading…
Cancel
Save