GyOpenApiUtil 更新
This commit is contained in:
parent
59b6e0e966
commit
79f36cd448
|
|
@ -48,7 +48,8 @@ public class GyOpenApiUtil {
|
||||||
* 构建请求参数
|
* 构建请求参数
|
||||||
*/
|
*/
|
||||||
public static Map<String, Object> buildRequestParams(Map<String, Object> request) {
|
public static Map<String, Object> buildRequestParams(Map<String, Object> request) {
|
||||||
request.put("session", sessionKey);
|
request.put("sessionkey", sessionKey);
|
||||||
|
request.put("appkey", appKey);
|
||||||
Map<String, Object> params = new HashMap<>();
|
Map<String, Object> params = new HashMap<>();
|
||||||
|
|
||||||
params.putAll(request);
|
params.putAll(request);
|
||||||
|
|
@ -95,12 +96,7 @@ public class GyOpenApiUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Map<String, Object> params = new HashMap<>();
|
|
||||||
params.put("method", "gy.erp.trade.get");
|
|
||||||
|
|
||||||
Map<String, Object> stringObjectMap = GyOpenApiUtil.buildRequestParams(params);
|
|
||||||
String callGuanyiApi = GyOpenApiUtil.callGuanyiApi(stringObjectMap);
|
|
||||||
System.out.println(callGuanyiApi);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue