...
|
...
|
@@ -304,7 +304,7 @@ class Article extends BaseApi |
|
|
$data['user_id'] = $this->auth->id;
|
|
|
$data['zan_num'] = 0;
|
|
|
$res = model('article_comment')->create($data);
|
|
|
$res = model('article_comment')->with(['user'])->where('id',$res)->find();
|
|
|
$res = model('article_comment')->with(['user'])->where('id',$res['id'])->find();
|
|
|
//3.增加动态评论数据
|
|
|
model('article')->where('id',$data['article_id'])->setInc('ping_num');
|
|
|
Db::commit();
|
...
|
...
|
|