REQ-3045: 不要在链接中保留过多无用的字段
This commit is contained in:
parent
88b91be570
commit
fedb4dd34b
@ -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())
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user