UrlConstants.java
5.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
package com.wd.common.constant;
import com.wd.foundation.wdinterface.config.INetConfig;
import com.wd.foundation.wdinterface.constant.InterfaceConstant;
import com.wd.foundation.wdkitcore.router.ArouterServiceManager;
/**
* 任务方便的地址常量集合
* @author ypf
* @version [V1.0.0, 2023/12/04]
* @since V1.0.0
*/
public class UrlConstants {
/**
* 邀请好友链接
*/
public static final String INVITE_FRIENDS_URL[] =
{
"https://pd-people-sit.pdnews.cn/h/invite?hiddenTopNavigation=false",
"https://pd-people-uat.pdnews.cn/h/invite?hiddenTopNavigation=false",
"https://pd-people-dev.pdnews.cn/h/invite?hiddenTopNavigation=false",
"https://www.peopleapp.com/h/invite?hiddenTopNavigation=false"
};
/**
* 成长值说明链接
*/
public static final String GROWTH_EXPLAIN_URL[] =
{
"https://pd-people-sit.pdnews.cn/h/grade?hiddenTopNavigation=false",
"https://pd-people-uat.pdnews.cn/h/grade?hiddenTopNavigation=false",
"https://pd-people-dev.pdnews.cn/h/grade?hiddenTopNavigation=false",
"https://www.peopleapp.com/h/grade?hiddenTopNavigation=false"
};
/**
* 积分商城链接
*/
public static final String POINTS_MALL_URL[] =
{
"https://pd-people-sit.pdnews.cn/h/atv/shopping",
"https://pd-people-uat.pdnews.cn/h/atv/shopping",
"https://pd-people-dev.pdnews.cn/h/atv/shopping",
"https://www.peopleapp.com/h/atv/shopping"
};
/**
* 我的奖品链接
*/
public static final String MY_PRIZE_URL[] =
{
"https://pd-people-sit.pdnews.cn/h/atv/prizeList",
"https://pd-people-uat.pdnews.cn/h/atv/prizeList",
"https://pd-people-dev.pdnews.cn/h/atv/prizeList",
"https://www.peopleapp.com/h/atv/prizeList"
};
/**
* 个人信息收集清单
* collection_personal_information
*/
public static final String COLLECTION_PERSONAL_INFORMATION_URL[] =
{
"https://pd-people-uat.pdnews.cn/h/atv/infolist",
"https://pd-people-uat.pdnews.cn/h/atv/infolist",
"https://pd-people-uat.pdnews.cn/h/atv/infolist",
"https://pd-people-uat.pdnews.cn/h/atv/infolist"
};
/**
* 邀请好友链接
* @return
*/
public static String getInviteFriendsUrl(){
INetConfig config = ArouterServiceManager.provide(InterfaceConstant.PATH_NET_CONFIG);
String tag = config.getUrlTag();
if (config.getBaseUrlSitTag().equals(tag)) {
return INVITE_FRIENDS_URL[0];
} else if (config.getBaseUrlUatTag().equals(tag)) {
return INVITE_FRIENDS_URL[1];
}else if (config.getBaseUrlDevTag().equals(tag)) {
return INVITE_FRIENDS_URL[2];
} else {
//正式环境
return INVITE_FRIENDS_URL[3];
}
}
/**
* 成长值说明链接
* @return
*/
public static String getGrowthExplainUrl(){
INetConfig config = ArouterServiceManager.provide(InterfaceConstant.PATH_NET_CONFIG);
String tag = config.getUrlTag();
if (config.getBaseUrlSitTag().equals(tag)) {
return GROWTH_EXPLAIN_URL[0];
} else if (config.getBaseUrlUatTag().equals(tag)) {
return GROWTH_EXPLAIN_URL[1];
} else if (config.getBaseUrlDevTag().equals(tag)) {
return GROWTH_EXPLAIN_URL[2];
} else {
//正式环境
return GROWTH_EXPLAIN_URL[3];
}
}
/**
* 我的奖品链接
* @return
*/
public static String getMyPrizeUrl(){
// String tag = NetManager.getUrlTag();
// if (NetManager.BASE_URL_SIT.equals(tag)) {
// return MY_PRIZE_URL[0];
// } else if (NetManager.BASE_URL_UAT.equals(tag)) {
// return MY_PRIZE_URL[1];
// }else if (NetManager.BASE_URL_DEV.equals(tag)) {
// return MY_PRIZE_URL[2];
// } else {
//正式环境
return MY_PRIZE_URL[3];
// }
}
/**
* 积分商城链接
* @return
*/
public static String getPointsMallUrl(){
// String tag = NetManager.getUrlTag();
// if (NetManager.BASE_URL_SIT.equals(tag)) {
// return POINTS_MALL_URL[0];
// } else if (NetManager.BASE_URL_UAT.equals(tag)) {
// return POINTS_MALL_URL[1];
// }else if (NetManager.BASE_URL_DEV.equals(tag)) {
// return POINTS_MALL_URL[2];
// } else {
//正式环境
return POINTS_MALL_URL[3];
// }
}
/**
* 个人信息收集清单链接
* @return
*/
public static String getCollectionPersonalInformationListUrl(){
// String tag = NetManager.getUrlTag();
// if (NetManager.BASE_URL_SIT.equals(tag)) {
// return COLLECTION_PERSONAL_INFORMATION_URL[0];
// } else if (NetManager.BASE_URL_UAT.equals(tag)) {
// return COLLECTION_PERSONAL_INFORMATION_URL[1];
// }else if (NetManager.BASE_URL_DEV.equals(tag)) {
// return COLLECTION_PERSONAL_INFORMATION_URL[2];
// } else {
//正式环境
return COLLECTION_PERSONAL_INFORMATION_URL[3];
// }
}
}