Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue where the configuration of componentType as NORMAL is not effective. #665

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

moon6967
Copy link
Contributor

@moon6967 moon6967 commented Nov 22, 2023

The previous PR #661 had issues when merging commits, so it's being resubmitted.

When using the object obtained from ApiConfig.getInstance(), all its fields are unassigned, resulting in getComponentType() returning null and defaulting to the RANDOM mode. An ApiConfig.setInstance() method has been added to initialize ApiConfig.instance.

之前的 PR #661 在合并 commit 的时候有问题,所以重提一个。

使用 ApiConfig.getInstance() 获取的对象,里面的字段都是未赋值的,导致 getComponentType() 为 null,默认走 RANDOM 模式。
增加 ApiConfig.setInstance() 方法,为 ApiConfig.instance 进行初始化。

@shalousun shalousun merged commit 52a4a4b into TongchengOpenSource:master Nov 23, 2023
@shalousun shalousun added this to the 3.0.1 milestone Nov 23, 2023
@shalousun shalousun changed the title 修复 componentType 配置为 NORMAL 失效的问题 Fix the issue where the configuration of componentType as NORMAL is not effective. Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants