package com.ruoyi.order.util.kuaishou;
|
|
import com.ruoyi.common.redis.service.RedisService;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
|
|
/**
|
* @author zhibing.pu
|
* @Date 2025/6/11 19:36
|
*/
|
@Slf4j
|
@RestController
|
@RequestMapping("/kuaishou")
|
public class KSWebHookController {
|
|
@Resource
|
private RedisService redisService;
|
|
|
/**
|
* 快手webhook
|
*/
|
@ResponseBody
|
@GetMapping("/webhook")
|
public void orderWebHook(String code, String state) {
|
log.info("快手webhook回调,code:{},state:{}", code, state);
|
ClientTokenUtil.getClientToken(redisService, code);
|
}
|
|
|
}
|