File was renamed from ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/util/kuaishou/OrderUtil.java |
| | |
| | | * @Date 2025/6/11 18:58 |
| | | */ |
| | | @Slf4j |
| | | public class OrderUtil { |
| | | public class KSOrderUtil { |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static OpenApiQueryOrderDetailInfoV1 queryOrderInfo(RedisService redisService, String order_id) { |
| | | //判断token是否过期 |
| | | Object ks_access_token = redisService.getCacheObject("ks_access_token"); |
| | | // Object ks_access_token = redisService.getCacheObject("ks_access_token"); |
| | | Object ks_access_token = "ChFvYXV0aC5hY2Nlc3NUb2tlbhIw2wStpH_xKVvdiMW3FC-K5jaDZuWrAE-s_Snu40VKs7D-Syd_cVWqZO_y9APvkvVUGhLOP4f6O_NIH5dNtHtm_4-XE8QiIFE-h8UpEf22Wbcrj4qUb_zFeGnZHgwa6rj1h6QVbrQFKAUwAQ"; |
| | | if(null == ks_access_token){ |
| | | //刷新token |
| | | com.ruoyi.order.util.kuaishou.ClientTokenUtil.refreshToken(redisService); |
| | | com.ruoyi.order.util.kuaishou.KSClientTokenUtil.refreshToken(redisService); |
| | | ks_access_token = redisService.getCacheObject("ks_access_token"); |
| | | } |
| | | String access_token = ks_access_token.toString(); |