优化
This commit is contained in:
@@ -15,7 +15,8 @@ public class InboundCodeModeProvider {
|
||||
|
||||
private final Mode mode;
|
||||
|
||||
public InboundCodeModeProvider(@Value("${baiyue.order.inbound-code-mode}") String configuredMode) {
|
||||
public InboundCodeModeProvider(
|
||||
@Value("${baiyue.order.inbound-code-mode:LEGACY_MANUAL}") String configuredMode) {
|
||||
if (!StringUtils.hasText(configuredMode)) {
|
||||
throw new IllegalStateException("baiyue.order.inbound-code-mode 必须显式配置");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user