YouZanController.java 838 B

12345678910111213141516171819202122232425262728
  1. package com.malk.rjk.controller;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.malk.rjk.server.YouZanServer;
  4. import com.malk.server.common.McR;
  5. import lombok.extern.slf4j.Slf4j;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.PostMapping;
  8. import org.springframework.web.bind.annotation.RequestBody;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RestController;
  11. @Slf4j
  12. @RestController
  13. @RequestMapping("/youzan")
  14. public class YouZanController {
  15. @Autowired
  16. private YouZanServer youZanServer;
  17. @PostMapping("/OrderSuccessCallback")
  18. McR OrderSuccessCallback(@RequestBody JSONObject callbackData){
  19. youZanServer.OrderSuccessCallback(callbackData);
  20. return McR.success();
  21. }
  22. }