diff --git a/src/main/java/com/web/wps/config/PassUrl.java b/src/main/java/com/web/wps/config/PassUrl.java index 25966759b81900ff6f15fa3bb17b9deda79f8c3c..dc6ed41bf32b4cbccae983b67c7695603b1a3df2 100644 --- a/src/main/java/com/web/wps/config/PassUrl.java +++ b/src/main/java/com/web/wps/config/PassUrl.java @@ -2,7 +2,7 @@ package com.web.wps.config; public enum PassUrl { - v1_3rd_user,v1_3rd_file,v1_api_file; + v1_3rd_user,v1_3rd,v1_3rd_file,v1_api_file; public static boolean checkCode(String code){ for (PassUrl mode : PassUrl.values()){ diff --git a/src/main/java/com/web/wps/logic/controller/NotifyCallBackController.java b/src/main/java/com/web/wps/logic/controller/NotifyCallBackController.java new file mode 100644 index 0000000000000000000000000000000000000000..4061658140b9322e69e3ca7784b48fd0274573c3 --- /dev/null +++ b/src/main/java/com/web/wps/logic/controller/NotifyCallBackController.java @@ -0,0 +1,34 @@ +package com.web.wps.logic.controller; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.web.wps.base.BaseController; +import com.web.wps.base.Response; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * @author czw + * 消息回调接口 + */ +@RestController +@RequestMapping("v1/3rd") +public class NotifyCallBackController extends BaseController { + + /** + * 回调通知 + */ + @PostMapping("onnotify") + public ResponseEntity onNotify( + @RequestBody JSONObject obj + ){ + logger.info("回调通知param:{}",JSON.toJSONString(obj)); + // TODO + // 返回数据暂不处理 + return Response.success(); + } + +}