tencent cloud

Tencent Cloud Super App as a Service

문서Tencent Cloud Super App as a Service

Customizing Virtual Domain

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-07-04 17:33:28
The mini program uses a default virtual domain, which is not a real domain and cannot be accessed in a browser. To customize it, follow the configuration below.
The default virtual domain is shown as follows:

To customize the virtual domain, override the configData method in BaseMiniAppProxyImpl class and intercept the method where configType is MiniConfigData.TYPE_DOMAIN to implement customization.
Example:
@Override
public MiniConfigData configData(Context context, int configType, JSONObject params) {
if(configType == MiniConfigData.TYPE_DOMAIN) {
// Virtual domain configuration
MiniConfigData.DomainConfig domainConfig = new MiniConfigData.DomainConfig();
domainConfig.domain = "test.com";

return new MiniConfigData
.Builder()
.domainConfig(domainConfig)
.build();
}
return new MiniConfigData
.Builder()
.build();
}





도움말 및 지원

문제 해결에 도움이 되었나요?

피드백