Skip to content

Commit ff20ecb

Browse files
committed
替换网址共同部分为已定义的常量
1 parent 5aba474 commit ff20ecb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpUserTagServiceImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public WxTagListUser tagListUser(Long tagId, String nextOpenid)
102102
@Override
103103
public boolean batchTagging(Long tagId, String[] openids)
104104
throws WxErrorException {
105-
String url = "https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging";
105+
String url = API_URL_PREFIX + "/members/batchtagging";
106106

107107
JsonObject json = new JsonObject();
108108
json.addProperty("tagid", tagId);
@@ -124,7 +124,7 @@ public boolean batchTagging(Long tagId, String[] openids)
124124
@Override
125125
public boolean batchUntagging(Long tagId, String[] openids)
126126
throws WxErrorException {
127-
String url = "https://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging";
127+
String url = API_URL_PREFIX + "/members/batchuntagging";
128128

129129
JsonObject json = new JsonObject();
130130
json.addProperty("tagid", tagId);
@@ -145,7 +145,7 @@ public boolean batchUntagging(Long tagId, String[] openids)
145145

146146
@Override
147147
public List<Integer> userTagList(String openid) throws WxErrorException {
148-
String url = "https://api.weixin.qq.com/cgi-bin/tags/getidlist";
148+
String url = API_URL_PREFIX + "/getidlist";
149149

150150
JsonObject json = new JsonObject();
151151
json.addProperty("openid", openid);

0 commit comments

Comments
 (0)