| | |
| | | |
| | | objectObjectHashMap.put("shopAccount",shopAccount); |
| | | objectObjectHashMap.put("shopPwd",shopPwd); |
| | | objectObjectHashMap.put("userld",userld.toString()); |
| | | objectObjectHashMap.put("userId",userld.toString()); |
| | | |
| | | //sign= MD5(address+age+name+phoneNumber+shopAccount+shopPwd) |
| | | //sign= MD5(shopAccount+shopPwd+userId) |
| | | StringBuffer stringBuffer = new StringBuffer(); |
| | | stringBuffer.append(shopAccount); |
| | | stringBuffer.append(shopPwd); |
| | | stringBuffer.append(userld); |
| | | String sign = MD5.MD5Encode(stringBuffer.toString()); |
| | | objectObjectHashMap.put("sign",sign); |
| | | |
| | | String url = "https://data.muchun.co/api/getCustomerCheckRecords"; |
| | | String result = HttpCurlUtil.sendPost(url, objectObjectHashMap); |
| | | Integer retCode = JSONUtil.parseObj(result).getInt("retCode"); |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Long userld = 177L; |
| | | Long userld = 173L; |
| | | String shopAccount = "luohu"; |
| | | String shopPwd = "123456"; |
| | | |
| | |
| | | |
| | | objectObjectHashMap.put("shopAccount",shopAccount); |
| | | objectObjectHashMap.put("shopPwd",shopPwd); |
| | | objectObjectHashMap.put("userld",userld.toString()); |
| | | objectObjectHashMap.put("userId",userld.toString()); |
| | | |
| | | //sign= MD5(shopAccount+shopPwd+userId) |
| | | StringBuffer stringBuffer = new StringBuffer(); |