|
@@ -267,19 +267,19 @@ func (c *ReportControllerCommon) GetResearchReportChapter() {
|
|
|
// @Success 200 创建成功
|
|
|
// @router /article/change [post]
|
|
|
func (c *ReportController) ArticleChange() {
|
|
|
- //appid权限校验
|
|
|
- appid := c.GetString("appid", "")
|
|
|
- if utils.RunMode == "release" && appid != "XVuGlcyEEVNYVWx5" {
|
|
|
- c.FailWithMessage("无权限")
|
|
|
- return
|
|
|
- }
|
|
|
+
|
|
|
var req article.CreatArticleCeluePushReq
|
|
|
err := json.Unmarshal(c.Ctx.Input.RequestBody, &req)
|
|
|
if err != nil {
|
|
|
c.FailWithMessage("参数解析异常")
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ //appid权限校验
|
|
|
+ appid := req.Appid
|
|
|
+ if utils.RunMode == "release" && appid != "XVuGlcyEEVNYVWx5" {
|
|
|
+ c.FailWithMessage("无权限")
|
|
|
+ return
|
|
|
+ }
|
|
|
articleId := req.ArticleId
|
|
|
action := req.Action
|
|
|
if articleId < 0 {
|