REQ-3045: 不要在链接中保留过多无用的字段

This commit is contained in:
yanglin 2024-10-12 14:41:22 +08:00
parent 88b91be570
commit fedb4dd34b
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ public class MobileUrlConfig {
return ios != null && ios.hasUrl() || android != null && android.hasUrl();
}
public void setFieldNullIfUrlAbsent() {
public void setFieldsNullIfUrlAbsent() {
if (ios != null && !ios.hasUrl())
ios = null;
if (android != null && !android.hasUrl())

View File

@ -98,7 +98,7 @@ public class UrlConfig {
return appManager != null && appManager.hasUrl();
}
public void setFieldNullIfUrlAbsent() {
public void setFieldsNullIfUrlAbsent() {
if (pcOms != null && !pcOms.hasUrl())
pcOms = null;
if (pcCms != null && !pcCms.hasUrl())
@ -106,11 +106,11 @@ public class UrlConfig {
if (pcGaGeneral != null && !pcGaGeneral.hasUrl())
pcGaGeneral = null;
if (appWorker != null)
appWorker.setFieldNullIfUrlAbsent();
appWorker.setFieldsNullIfUrlAbsent();
if (appWorker != null && !appWorker.hasUrl())
appWorker = null;
if (appManager != null)
appManager.setFieldNullIfUrlAbsent();
appManager.setFieldsNullIfUrlAbsent();
if (appManager != null && !appManager.hasUrl())
appManager = null;
}