|
@@ -400,18 +400,18 @@ class Article extends Base
|
|
|
}
|
|
|
return $is_release ? $query->order($order) : $query->where('status',1)->order($order);
|
|
|
}])->find()->toArray();
|
|
|
- $detail['item_list'] = $detail['item_list3'];
|
|
|
- unset($detail['item_list3']);
|
|
|
- $detail['is_release'] = $is_release;
|
|
|
- if($is_release && $detail['is_deleted'] )$this->error('该图文已下线');
|
|
|
- if(!$detail['is_release'] && ($detail['is_deleted'] == 1 || $detail['status'] == 0))$this->error('该图文已下线');
|
|
|
- if(in_array($this->source_type,[1])) $detail['content'] = openssl_encrypt($detail['content'],'DES-ECB',123456,0);
|
|
|
- $detail['read_num'] = array_sum(array_column($detail['item_list'],'read_num'));
|
|
|
- $detail['read_num'] = numTransform($detail['read_num']);
|
|
|
- $detail['follow_switch'] = PlatformSwitch::checkSwitch($this->user_id,$detail['id'],3);
|
|
|
- $recently_id = UserTrack::getRecentlyTrack($this->user_id,3,$detail['id']);
|
|
|
- $level_id = UserLevelRank::getUserVip($this->user_id);
|
|
|
- $detail['user_level'] = $level_id;
|
|
|
+// $detail['item_list'] = $detail['item_list3'];
|
|
|
+// unset($detail['item_list3']);
|
|
|
+// $detail['is_release'] = $is_release;
|
|
|
+// if($is_release && $detail['is_deleted'] )$this->error('该图文已下线');
|
|
|
+// if(!$detail['is_release'] && ($detail['is_deleted'] == 1 || $detail['status'] == 0))$this->error('该图文已下线');
|
|
|
+// if(in_array($this->source_type,[1])) $detail['content'] = openssl_encrypt($detail['content'],'DES-ECB',123456,0);
|
|
|
+// $detail['read_num'] = array_sum(array_column($detail['item_list'],'read_num'));
|
|
|
+// $detail['read_num'] = numTransform($detail['read_num']);
|
|
|
+// $detail['follow_switch'] = PlatformSwitch::checkSwitch($this->user_id,$detail['id'],3);
|
|
|
+// $recently_id = UserTrack::getRecentlyTrack($this->user_id,3,$detail['id']);
|
|
|
+// $level_id = UserLevelRank::getUserVip($this->user_id);
|
|
|
+// $detail['user_level'] = $level_id;
|
|
|
|
|
|
// foreach ($detail['item_list'] as &$dv) {
|
|
|
// if(in_array($this->source_type,[1])) unset($dv['pdf_clear']);
|