摘要: public class XmlUtils { /** <一句话功能简述> * <功能详细描述>request转字符串 * @param request * @return * @see [类、类#方法、类#成员] */ public static String parseRequst(HttpSe 阅读全文
posted @ 2020-08-13 14:38 _情书 阅读(454) 评论(0) 推荐(0) 编辑
摘要: /** * @description 金额元分之间转换工具类 */ public class AmountUtils { /**金额为分的格式 */ public static final String CURRENCY_FEN_REGEX = "\\-?[0-9]+"; /** * 将分为单位的转 阅读全文
posted @ 2020-08-10 18:30 _情书 阅读(6622) 评论(0) 推荐(0) 编辑
摘要: 本次记录的是微信“JSAPI”的支付方式 也就是微信内H5页面调起支付,其他支付方式也大同小异,总体的流程和思路大致是一样的,基本配置方面就不详细记录,只需要商户号和商户Key,这个是配套的,还有跟商户号绑定的appid,在商户平台就可以实现绑定。 //组织参数统一下单(key注意字母大小写) Tr 阅读全文
posted @ 2020-08-10 14:41 _情书 阅读(816) 评论(0) 推荐(0) 编辑
摘要: @MapperScan("com.tw.demo.wechatUser.dao") @MapperScan("com.tw.demo.pay.wxPay.dao") @MapperScan("com.tw.demo.test.dao") @SpringBootApplication public c 阅读全文
posted @ 2020-08-07 14:58 _情书 阅读(1699) 评论(1) 推荐(0) 编辑
摘要: 发送示例: http://IP:port/baidu.com?action=2&yydm=kfcs&paytype=3&notifyUrl=1&czyh=wnpay&outSignNo=1 //post请求 public class DoPostUtils { public static Strin 阅读全文
posted @ 2020-07-06 09:15 _情书 阅读(19193) 评论(0) 推荐(0) 编辑
摘要: JSONObject json = new JSONObject(); //保存json格式的对象 json .put("key","value") String jsonStr = json.toString(); //把json格式的对象转换成json字符串用于保存或入参 JSONObject 阅读全文
posted @ 2020-06-30 09:56 _情书 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 数组对象 var array= [{},{},{}] var arrayStr = JSON.stringify(array) //将数组对象转为字符串数组 var array = JSON.parse(arrayStr) //将数组字符串转为数组对象 阅读全文
posted @ 2020-06-11 17:21 _情书 阅读(7092) 评论(0) 推荐(0) 编辑
摘要: //array 为数组名称 name为数组中对象key name1为对象value值 for (let index in array) { array.map(item=>{ item.name=item.name.replace(array[index].name, name1) }) } //把 阅读全文
posted @ 2020-05-27 17:04 _情书 阅读(4388) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-04-29 15:14 _情书 阅读(685) 评论(0) 推荐(0) 编辑
摘要: 第一种方式: wxml 页面 <view bindtap="bindViewTap" class="page"> </view> js 页面 //事件处理函数 bindViewTap: function() { wx.navigateTo({ url: '../logs/logs?id = '+id 阅读全文
posted @ 2020-04-24 17:26 _情书 阅读(1126) 评论(0) 推荐(0) 编辑