| 12345678910111213141516171819202122232425262728 |
- package com.malk.rjk.controller;
- import com.alibaba.fastjson.JSONObject;
- import com.malk.rjk.server.YouZanServer;
- import com.malk.server.common.McR;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- 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;
- @Slf4j
- @RestController
- @RequestMapping("/youzan")
- public class YouZanController {
- @Autowired
- private YouZanServer youZanServer;
- @PostMapping("/OrderSuccessCallback")
- McR OrderSuccessCallback(@RequestBody JSONObject callbackData){
- youZanServer.OrderSuccessCallback(callbackData);
- return McR.success();
- }
- }
|