|
@@ -78,7 +78,7 @@ class Index extends Api
|
|
|
}
|
|
|
|
|
|
$lists = Db::name('train_active')->field('id,name as title,logo_image,starttime,endtime,pingjia_time,pingjia_uid')
|
|
|
- ->where('pingjia_uid',0)
|
|
|
+ ->where('pingjia_time',0)
|
|
|
->where('deletetime', NULL)
|
|
|
->where($where_auth)
|
|
|
->limit(2)
|
|
@@ -88,7 +88,7 @@ class Index extends Api
|
|
|
foreach($lists as $key => &$val){
|
|
|
$val['logo_image'] = localpath_to_netpath($val['logo_image']);
|
|
|
|
|
|
- if($val['pingjia_uid'] != 0){
|
|
|
+ if($val['pingjia_time'] != 0){
|
|
|
$val['show_status'] = 3;
|
|
|
$val['show_status_text'] = '已结束';
|
|
|
}elseif($now < $val['starttime']){
|
|
@@ -137,7 +137,7 @@ class Index extends Api
|
|
|
$where = [];
|
|
|
|
|
|
if($type == 3){
|
|
|
- $where['pingjia_uid'] = ['NEQ',0];
|
|
|
+ $where['pingjia_time'] = ['NEQ',0];
|
|
|
}elseif($type == 1){
|
|
|
$where['starttime'] = ['gt',$now];
|
|
|
}else{
|
|
@@ -162,7 +162,7 @@ class Index extends Api
|
|
|
foreach($papers as $key => &$val){
|
|
|
$val['logo_image'] = localpath_to_netpath($val['logo_image']);
|
|
|
|
|
|
- if($val['pingjia_uid'] != 0){ //时间或评价,都行
|
|
|
+ if($val['pingjia_time'] != 0){ //时间或评价,都行
|
|
|
$val['show_status'] = 3;
|
|
|
$val['show_status_text'] = '已结束';
|
|
|
}elseif($now < $val['starttime']){
|