ResrTemplate GET 无需手动拼接url参数
0、最初的写法(这样写也是可以的,就是太麻烦了,可读性不好) String param = "name={0}&idcard={1}&phone={2}&sex={3}&national={4}&birthday={5}&address={6}" + "&issuance=&effective=&effective_end=&front_photo=&back_photo=&scene_photo={7}&card_type=身份证&mopenid="; String sex = ""; if (usr.getAuthSex() == 0) { sex = "男"; } else if (usr.getAuthSex() == 1) { sex = "女"; } param = Messag...阅读全文