Skip to content

Commit b9d8778

Browse files
victiniJaven
authored andcommitted
fix isDeviceInTag bug
1 parent 1aa4cd3 commit b9d8778

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cn/jpush/api/device/DeviceClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import cn.jpush.api.common.resp.BooleanResult;
1313
import cn.jpush.api.common.resp.DefaultResult;
1414
import cn.jpush.api.common.resp.ResponseWrapper;
15-
import cn.jpush.api.utils.StringUtils;
1615

1716
import com.google.gson.JsonArray;
1817
import com.google.gson.JsonObject;
@@ -96,8 +95,7 @@ public TagListResult getTagList() throws APIConnectionException, APIRequestExcep
9695
}
9796

9897
public BooleanResult isDeviceInTag(String theTag, String registrationID) throws APIConnectionException, APIRequestException {
99-
String url = HOST_NAME_SSL + TAG_PATH + "/" + theTag + "/exist";
100-
98+
String url = HOST_NAME_SSL + TAG_PATH + "/" + theTag + "/exist?registration_id=" + registrationID;
10199
ResponseWrapper response = _httpClient.sendGet(url);
102100

103101
return BaseResult.fromResponse(response, BooleanResult.class);

0 commit comments

Comments
 (0)