摘要: /** * 生成 MD5 * * @param data 待处理数据 * @return MD5结果 */ public static String MD5(String data) throws Exception { java.security.MessageDigest md = Messag 阅读全文
posted @ 2020-07-31 13:35 流浪者&乔木 阅读(258) 评论(0) 推荐(0)
摘要: /** * XML格式字符串转换为Map * * @param strXML XML字符串 * @return XML数据转换后的Map * @throws Exception */ public static Map<String, String> xmlToMap(String strXML) 阅读全文
posted @ 2020-07-31 13:34 流浪者&乔木 阅读(460) 评论(0) 推荐(0)
摘要: 进行支付 public Result getOrder(Integer pid,Integer shopId){ Map<String, String> contentData=new HashMap<String, String>(); contentData.put("version", Con 阅读全文
posted @ 2020-07-31 13:32 流浪者&乔木 阅读(164) 评论(0) 推荐(0)
摘要: private static final String wechatPay = "https://api.mch.weixin.qq.com/pay/unifiedorder"; // 沙箱 // private static final String wechatPay = "https://ap 阅读全文
posted @ 2020-07-31 13:21 流浪者&乔木 阅读(391) 评论(0) 推荐(0)
摘要: alter table 数据库add index 索引名称(数据库字段名称)PRIMARY KEY(主键索引)ALTER TABLE `table_name` ADD PRIMARY KEY ( `column` )UNIQUE(唯一索引)ALTER TABLE `table_name` ADD U 阅读全文
posted @ 2020-07-31 11:03 流浪者&乔木 阅读(1266) 评论(0) 推荐(0)