对齐 BOOT 与 CLOUD 的代码

This commit is contained in:
YunaiV 2024-01-19 22:13:55 +08:00
parent 023a7b14d8
commit 6a6e95fcb6
7 changed files with 5 additions and 15 deletions

View File

@ -6,7 +6,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer; import org.springframework.security.config.annotation.web.configurers.AuthorizeHttpRequestsConfigurer;
import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer;
/** /**
* Infra 模块的 Security 配置 * Infra 模块的 Security 配置

View File

@ -70,7 +70,7 @@ public class CouponServiceImpl implements CouponService {
throw exception(COUPON_STATUS_NOT_UNUSED); throw exception(COUPON_STATUS_NOT_UNUSED);
} }
// 校验有效期为避免定时器没跑实际优惠劵已经过期 // 校验有效期为避免定时器没跑实际优惠劵已经过期
if (LocalDateTimeUtils.isBetween(coupon.getValidStartTime(), coupon.getValidEndTime())) { if (!LocalDateTimeUtils.isBetween(coupon.getValidStartTime(), coupon.getValidEndTime())) {
throw exception(COUPON_VALID_TIME_NOT_NOW); throw exception(COUPON_VALID_TIME_NOT_NOW);
} }
} }

View File

@ -10,7 +10,7 @@ import java.time.LocalDateTime;
public class AppMemberPointRecordRespVO { public class AppMemberPointRecordRespVO {
@Schema(description = "自增主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31457") @Schema(description = "自增主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31457")
private Long id;; private Long id;
@Schema(description = "积分标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜") @Schema(description = "积分标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
private String title; private String title;

View File

@ -197,7 +197,7 @@ public class PayChannelServiceTest extends BaseDbUnitTest {
channelMapper.insert(dbChannel);// @Sql: 先插入出一条存在的数据 channelMapper.insert(dbChannel);// @Sql: 先插入出一条存在的数据
// 准备参数 // 准备参数
Long appId = dbChannel.getAppId(); Long appId = dbChannel.getAppId();
String code = dbChannel.getCode();; String code = dbChannel.getCode();
// 调用 // 调用
PayChannelDO channel = channelService.getChannelByAppIdAndCode(appId, code); PayChannelDO channel = channelService.getChannelByAppIdAndCode(appId, code);

View File

@ -6,7 +6,7 @@ import jakarta.validation.constraints.NotNull;
import lombok.Data; import lombok.Data;
/** /**
* 系统操作日志 Create Req BO * 系统操作日志 Create Request DTO
* *
* @author HUIHUI * @author HUIHUI
*/ */

View File

@ -201,12 +201,4 @@ justauth:
cache: cache:
type: REDIS type: REDIS
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟 timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
wx:
mp:
useRedis: false
defaultContent: \u60A8\u597D\uFF0C\u6709\u4EC0\u4E48\u95EE\u9898\uFF1F
redisConfig:
host: 127.0.0.1
port: 6379
password:

View File

@ -262,7 +262,6 @@ justauth:
client-id: ${wx.mp.app-id} client-id: ${wx.mp.app-id}
client-secret: ${wx.mp.secret} client-secret: ${wx.mp.secret}
ignore-check-redirect-uri: true ignore-check-redirect-uri: true
cache: cache:
type: REDIS type: REDIS
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE:: prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::