| | |
| | | return new FebsResponse().success().message("设置成功"); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String pwd = SecureUtil.md5("123456"); |
| | | System.out.println(pwd); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse modifyMemberInfo(ModifyMemberInfoDto modifyMemberInfoDto) { |
| | | MallMember member = LoginUserUtil.getLoginUser(); |
| | |
| | | return new FebsResponse().success().data(apiMoneyFlowHeaderVo); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Long userld = 16425L; |
| | | String shopAccount = "爱和美医疗"; |
| | | String shopPwd = "blnka2005"; |
| | | |
| | | HashMap<String, String> objectObjectHashMap = new HashMap<>(); |
| | | |
| | | objectObjectHashMap.put("shopAccount",shopAccount); |
| | | objectObjectHashMap.put("shopPwd",shopPwd); |
| | | objectObjectHashMap.put("userId",userld.toString()); |
| | | |
| | | //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); |
| | | |
| | | System.out.println(sign); |
| | | |
| | | System.out.println(objectObjectHashMap); |
| | | String url = "https://data.muchun.co/api/getCustomerCheckRecords"; |
| | | String result = HttpCurlUtil.sendPost(url, objectObjectHashMap); |
| | | Integer retCode = JSONUtil.parseObj(result).getInt("retCode"); |
| | | String message = JSONUtil.parseObj(result).getStr("message"); |
| | | if(0 != retCode){ |
| | | System.out.println(message); |
| | | } |
| | | |
| | | JSONArray data = JSONUtil.parseObj(result).getJSONArray("data"); |
| | | System.out.println(data); |
| | | } |
| | | // public static void main(String[] args) { |
| | | // Long userld = 16425L; |
| | | // String shopAccount = "爱和美医疗"; |
| | | // String shopPwd = "blnka2005"; |
| | | // |
| | | // HashMap<String, String> objectObjectHashMap = new HashMap<>(); |
| | | // |
| | | // objectObjectHashMap.put("shopAccount",shopAccount); |
| | | // objectObjectHashMap.put("shopPwd",shopPwd); |
| | | // objectObjectHashMap.put("userId",userld.toString()); |
| | | // |
| | | // //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); |
| | | // |
| | | // System.out.println(sign); |
| | | // |
| | | // System.out.println(objectObjectHashMap); |
| | | // String url = "https://data.muchun.co/api/getCustomerCheckRecords"; |
| | | // String result = HttpCurlUtil.sendPost(url, objectObjectHashMap); |
| | | // Integer retCode = JSONUtil.parseObj(result).getInt("retCode"); |
| | | // String message = JSONUtil.parseObj(result).getStr("message"); |
| | | // if(0 != retCode){ |
| | | // System.out.println(message); |
| | | // } |
| | | // |
| | | // JSONArray data = JSONUtil.parseObj(result).getJSONArray("data"); |
| | | // System.out.println(data); |
| | | // } |
| | | |
| | | |
| | | } |