mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-11 02:15:58 +00:00
推送文章提示文章不存在
This commit is contained in:
parent
21dca05087
commit
d7518f10e0
@ -235,6 +235,8 @@ class WechatNewsCategory extends AuthController
|
||||
if($v['author'] == '') return JsonService::fail('作者不能为空');
|
||||
if($v['content'] == '') return JsonService::fail('正文不能为空');
|
||||
if($v['synopsis'] == '') return JsonService::fail('摘要不能为空');
|
||||
$v['add_time'] = time();
|
||||
$v['status'] = 1;
|
||||
if($v['id']){
|
||||
$idC = $v['id'];
|
||||
unset($v['id']);
|
||||
|
||||
@ -38,6 +38,7 @@ class Article extends WapBasic {
|
||||
public function visit($id = '')
|
||||
{
|
||||
$content = ArticleModel::where('status',1)->where('hide',0)->where('id',$id)->order('id desc')->find();
|
||||
|
||||
if(!$content || !$content["status"]) return $this->failed('此文章已经不存在!');
|
||||
$content["content"] = Db::name('articleContent')->where('nid',$content["id"])->value('content');
|
||||
//增加浏览次数
|
||||
|
||||
@ -155,7 +155,8 @@
|
||||
</div>
|
||||
<span class="nickname"></span>
|
||||
</div>
|
||||
<div class="lottie-bg"><div id="lottie"></div></div><script>
|
||||
<div class="lottie-bg"><div id="lottie"></div></div>
|
||||
<script>
|
||||
var anim;
|
||||
var elem = document.getElementById('lottie');
|
||||
//elem.style.display = 'none';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user