Commit 509fe3e0 authored by Liang Ding's avatar Liang Ding

🐛 幂等接收

parent 6d237e54
...@@ -103,7 +103,7 @@ public class B3Receiver { ...@@ -103,7 +103,7 @@ public class B3Receiver {
private ArticleQueryService articleQueryService; private ArticleQueryService articleQueryService;
/** /**
* Adds an article with the specified request. * Adds or updates an article with the specified request.
* <p> * <p>
* Request json: * Request json:
* <pre> * <pre>
...@@ -135,8 +135,8 @@ public class B3Receiver { ...@@ -135,8 +135,8 @@ public class B3Receiver {
* *
* @param context the specified http request context * @param context the specified http request context
*/ */
@RequestProcessing(value = "/apis/symphony/article", method = HttpMethod.POST) @RequestProcessing(value = "/apis/symphony/article", method = {HttpMethod.POST, HttpMethod.PUT})
public void addArticle(final RequestContext context) { public void postArticle(final RequestContext context) {
final JSONObject ret = new JSONObject().put(Keys.CODE, 0); final JSONObject ret = new JSONObject().put(Keys.CODE, 0);
context.renderJSON(ret); context.renderJSON(ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment