|
@@ -64,12 +64,12 @@ public class QiyeweixinAction extends StandardJaxrsAction {
|
|
|
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// @Path("sync/organization/callback")
|
|
|
|
|
+// @Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
|
|
+// @Consumes(MediaType.APPLICATION_JSON)
|
|
|
// msg_signature=ASDFQWEXZCVAQFASDFASDFSS×tamp=13500001234&nonce=123412323&echostr=ENCRYPT_STR
|
|
// msg_signature=ASDFQWEXZCVAQFASDFASDFSS×tamp=13500001234&nonce=123412323&echostr=ENCRYPT_STR
|
|
|
@JaxrsMethodDescribe(value = "接收企业微信通讯录变更回调的验证请求.", action = ActionSyncOrganizationCallbackGet.class)
|
|
@JaxrsMethodDescribe(value = "接收企业微信通讯录变更回调的验证请求.", action = ActionSyncOrganizationCallbackGet.class)
|
|
|
@GET
|
|
@GET
|
|
|
- @Path("sync/organization/callback")
|
|
|
|
|
- @Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
|
|
- @Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
|
public void syncOrganizationCallbackGet(@Suspended final AsyncResponse asyncResponse,
|
|
public void syncOrganizationCallbackGet(@Suspended final AsyncResponse asyncResponse,
|
|
|
@Context HttpServletRequest request, @QueryParam("msg_signature") String msg_signature,
|
|
@Context HttpServletRequest request, @QueryParam("msg_signature") String msg_signature,
|
|
|
@QueryParam("timestamp") String timestamp, @QueryParam("nonce") String nonce,
|
|
@QueryParam("timestamp") String timestamp, @QueryParam("nonce") String nonce,
|
|
@@ -86,20 +86,19 @@ public class QiyeweixinAction extends StandardJaxrsAction {
|
|
|
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ //@Path("sync/organization/callback")
|
|
|
|
|
+ // @Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
|
|
+ // @Consumes(MediaType.APPLICATION_JSON)
|
|
|
@JaxrsMethodDescribe(value = "接收企业微信通讯录变更回调.", action = ActionSyncOrganizationCallbackPost.class)
|
|
@JaxrsMethodDescribe(value = "接收企业微信通讯录变更回调.", action = ActionSyncOrganizationCallbackPost.class)
|
|
|
@POST
|
|
@POST
|
|
|
- @Path("sync/organization/callback")
|
|
|
|
|
- @Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
|
|
- @Consumes(MediaType.APPLICATION_JSON)
|
|
|
|
|
public void syncOrganizationCallbackPost(@Suspended final AsyncResponse asyncResponse,
|
|
public void syncOrganizationCallbackPost(@Suspended final AsyncResponse asyncResponse,
|
|
|
@Context HttpServletRequest request, @QueryParam("msg_signature") String msg_signature,
|
|
@Context HttpServletRequest request, @QueryParam("msg_signature") String msg_signature,
|
|
|
- @QueryParam("timestamp") String timestamp, @QueryParam("nonce") String nonce,
|
|
|
|
|
- @QueryParam("echostr") String echostr, String body) {
|
|
|
|
|
|
|
+ @QueryParam("timestamp") String timestamp, @QueryParam("nonce") String nonce, String body) {
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
ActionResult<ActionSyncOrganizationCallbackPost.Wo> result = new ActionResult<>();
|
|
ActionResult<ActionSyncOrganizationCallbackPost.Wo> result = new ActionResult<>();
|
|
|
try {
|
|
try {
|
|
|
result = new ActionSyncOrganizationCallbackPost().execute(effectivePerson, msg_signature, timestamp, nonce,
|
|
result = new ActionSyncOrganizationCallbackPost().execute(effectivePerson, msg_signature, timestamp, nonce,
|
|
|
- echostr, body);
|
|
|
|
|
|
|
+ body);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
logger.error(e, effectivePerson, request, null);
|
|
logger.error(e, effectivePerson, request, null);
|
|
|
result.error(e);
|
|
result.error(e);
|