20201112
This commit is contained in:
@@ -208,6 +208,23 @@ class Article extends Controller {
|
||||
$re['articleList'] = $list;
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 增加文章阅读数量
|
||||
* @description 增加文章阅读数量
|
||||
* @author wangjinlei
|
||||
* @url /api/Article/addArticleNum
|
||||
* @method POST
|
||||
*
|
||||
* @param name:article_id type:int require:1 desc:期刊id
|
||||
* @param name:type type:string require:1 desc:类型(abs/html/pdf)
|
||||
*
|
||||
*/
|
||||
public function addArticleNum(){
|
||||
$data = $this->request->post();
|
||||
$this->article_obj->where('article_id',$data['article_id'])->setInc($data['type'].'_num');
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @title 获取top文章列表
|
||||
|
||||
Reference in New Issue
Block a user