Commit 3253570f by zhouhaibao

[+]代码修改

1 parent dbe97eb6
......@@ -177,7 +177,7 @@ public class UserDemoService {
"import java.util.*;\n" +
"\n" +
"\n" +
"public class Controller{\n" +
"public class Controller1 {\n" +
"\n" +
"\n" +
" private final static String appKey = \"48e5e13229b82c1b4e6e8c96151f0637\";\n" +
......@@ -189,18 +189,18 @@ public class UserDemoService {
" private final static String method = \"merchants.api.open.findStaffListByMerchantNo\";\n" +
"\n" +
" public static JSON execute(JSON param) {\n" +
" JSON post = null;\n" +
" // 将JSON字符串转换为Map\n" +
" // 将Map中的数据放入MultiValueMap中\n" +
" RopResponse post=null;\n" +
" MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>();\n" +
" params.add(\"merchantNo\", \"44210895\");\n" +
" try {\n" +
" post = post(params, JSON.class, baseurl, method);\n" +
" post = post(params, RopResponse.class, baseurl, method);\n" +
" } catch (Exception e) {\n" +
" throw new RuntimeException(e);\n" +
" }\n" +
" System.out.println(JSON.toJSONString(post));\n" +
" return post;\n" +
" return param;\n" +
" }\n" +
"\n" +
" private static void addBaseParam(MultiValueMap<String, String> paramsMap, String method) {\n" +
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!