/** * 解决有些Url过长的问题,采用统一命名 add by zjh 2015-05-12 Creates a pseudo-unique filename for the specified * cache key. * * @param key The key to generate a file name for. * @return A pseudo-unique filename. */ private static String getFilenameForKey(String key) { /* * int firstHalfLength = key.length() / 2; String localFilename = * String.valueOf(key.substring(0, firstHalfLength).hashCode()); * localFilename += * String.valueOf(key.substring(firstHalfLength).hashCode()); */ // modified by wcy 2015-6-5 // 统一采用MD5编码(32位数字与字母之间的数据) return MD5.toMD5(key); }
public CMSRequestData() { super(); app_version = SystemUtil.getAppVersion(ContactsApp.getInstance()); device = SystemUtil.getMachine(); location = LBSManager.getInstance().getLatitude() + "," + LBSManager.getInstance().getLongitude(); city = LBSManager.getInstance().getCity(); device_no = getDev_no(); sys_version = SystemUtil.getOS(); sign = MD5.toMD5(getDevice() + getTimestamp() + SECRITY); // 账号登陆模块还没写,先放在这里 // pt_token }