自动校对参数名 check_type->type
This commit is contained in:
@@ -37,14 +37,14 @@ class Plagiarism extends Base
|
||||
* article_id 必填
|
||||
* file_url 选填;不传则按 article_id 在 t_article_file 找 manuscirpt
|
||||
* editor_id 选填;触发人 user_id(前端拿不到也可以传 0)
|
||||
* check_type 选填;full(默认全文)| body_only(正文)| both(各提交一条)
|
||||
* type 选填;full(默认全文)| body_only(正文)| both(各提交一条)
|
||||
*/
|
||||
public function submit()
|
||||
{
|
||||
$articleId = intval($this->request->param('article_id', 0));
|
||||
$fileUrl = trim($this->request->param('file_url', ''));
|
||||
$editorId = intval($this->request->param('editor_id', 0));
|
||||
$checkType = trim($this->request->param('check_type', 'full'));
|
||||
$checkType = trim($this->request->param('type', 'full'));
|
||||
|
||||
if ($articleId <= 0) {
|
||||
return jsonError('article_id required');
|
||||
|
||||
Reference in New Issue
Block a user