Pu Zhibing
1 天以前 878ac7cc8e1951bbc7b27619c4e7ece1e3d331ff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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);
    }
    
    
}