Authored by liangyi.chen@yoho.cn

将get改成post

... ... @@ -8,6 +8,7 @@ import com.yohobuy.platform.model.grass.request.TblCrawlerInfoQueryReq;
import com.yohobuy.platform.model.grass.request.TbleCrawlerAddToGrassReq;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
... ... @@ -24,7 +25,7 @@ public class TblCrawlerArticleController {
ITblCrawlerInfoService tblCrawlerInfoService;
@RequestMapping("/publishCrawlerArticle")
public ApiResponse publishCrawlerArticle(TbleCrawlerAddToGrassReq req){
public ApiResponse publishCrawlerArticle(@RequestBody TbleCrawlerAddToGrassReq req){
logger.info("tblCrawlerArticle publishCrawlerArticle begin, req is {}", req);
try {
//默认审核通过
... ... @@ -37,7 +38,7 @@ public class TblCrawlerArticleController {
}
@RequestMapping("/tblTimerPublish")
public ApiResponse tblTimerPublish(TbleCrawlerAddToGrassReq req){
public ApiResponse tblTimerPublish(@RequestBody TbleCrawlerAddToGrassReq req){
logger.info("tblCrawlerArticle timerPublish begin, req is {}",req);
try {
tblCrawlerInfoService.timerPublishToGrass(req);
... ... @@ -48,7 +49,7 @@ public class TblCrawlerArticleController {
}
@RequestMapping("/saveTblArticleDraft")
public ApiResponse saveTblArticleDraft(TbleCrawlerAddToGrassReq req){
public ApiResponse saveTblArticleDraft(@RequestBody TbleCrawlerAddToGrassReq req){
logger.info("tblCrawlerArticle saveTblArticleDraft begin, req is {}", req);
try {
req.setAuthStatus(9);
... ...
... ... @@ -95,7 +95,7 @@
<td style="width:100% ">
<label style="font-size: 14px;">正文内容</label> <br>
<div style="float: left;width:700px;" >
<script id="content" name="content" type="text/plain" style="width:1024px;height:500px;"></script>
<textarea id="content" name="content" type="text/plain" style="width:1024px;height:500px;"></textarea>
</div>
</td>
</tr>
... ... @@ -175,8 +175,9 @@
initialFrameHeight: 200,
initialFrameWidth : "90%",
initialFrameHeight : 350,
removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var,h1,h2,h3,h4,h5',
toolbars: [[
'source', '|', 'undo', 'redo', '|',
'source', '|', 'undo', 'redo', '|','formatmatch','removeformat',
'bold', 'italic', 'underline','strikethrough','horizontal','|','paragraph', 'rowspacingtop',
'rowspacingbottom', '|',
'insertorderedlist', 'insertunorderedlist', 'blockquote','|',
... ... @@ -184,8 +185,11 @@
'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'help','fullscreen'
]],
elementPathEnabled : false,
catchRemoteImageEnable:false,
enableAutoSave:false,
enableContextMenu: false,
retainOnlyLabelPasted:true,
maximumWords:100000,
autoFloatEnabled:false
});
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action) {
... ...