This commit is contained in:
wangjinlei
2022-11-04 13:30:16 +08:00
parent 6058d5d32f
commit 45532ef702
7 changed files with 102 additions and 112 deletions

View File

@@ -216,6 +216,26 @@ class Publish extends Controller
return jsonSuccess([]);
}
/**
* 编辑文章权重
*/
public function editArticle(){
$data = $this->request->post();
$rule = new Validate([
'article_id'=>'require',
'sort'=>'require'
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$url = 'http://journalapi.tmrjournals.com/public/index.php/master/Article/changeArticleForSubmit';
$pra = [];
$pra['article_id'] = $data['article_id'];
$pra['sort'] = $data['sort'];
$res = object_to_array(json_decode(myPost($url, $pra)));
return jsonSuccess([]);
}
/**
* 获取文章的基本信息
*/