File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/tencent/xinge Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ public class XingeApp {
34
34
private String authStringEnc = null ;
35
35
36
36
37
- RESTAPIV3 restapiV3 = new RESTAPIV3 ();
37
+ private RESTAPIV3 restapiV3 = new RESTAPIV3 ();
38
+
38
39
private OkHttpClient client = new OkHttpClient .Builder ()
39
40
.connectTimeout (10 , TimeUnit .SECONDS )//设置连接超时时间
40
41
.readTimeout (10 , TimeUnit .SECONDS )//设置读取超时时间
@@ -98,7 +99,7 @@ public JSONObject deviceTag(String jsonRequest) {
98
99
return callRestful (restapiV3 .getRestApiTagUrl (), jsonRequest );
99
100
}
100
101
101
- private synchronized JSONObject callRestful (String apiAddress , String jsonRequestString ) {
102
+ private JSONObject callRestful (String apiAddress , String jsonRequestString ) {
102
103
JSONObject jsonRet = null ;
103
104
104
105
RequestBody requestBody = RequestBody .create (JSON_MEDIA_TYPE , jsonRequestString );
You can’t perform that action at this time.
0 commit comments