|
|
@@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.MessageFormat;
|
|
|
+import java.time.Duration;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
@@ -78,7 +79,7 @@ public class SelfBusiness {
|
|
|
log.info("[短信平台登录]-{}", JSONUtil.toJsonStr(result));
|
|
|
if(result.isSuccess()){
|
|
|
RedisUtils.deleteObject("yktSmsToken");
|
|
|
- RedisUtils.setCacheObject("yktSmsToken", result.getData().toString());
|
|
|
+ RedisUtils.setCacheObject("yktSmsToken", result.getData().toString(), Duration.ofHours(24));
|
|
|
}
|
|
|
} catch (Exception e){
|
|
|
log.error("登录短信平台失败,{}", e.getMessage());
|