上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 拦截器: public class AuthTokenInterceptor implements Interceptor { private final String ACCESS_TOKEN = "token"; @Override pu... 阅读全文
posted @ 2018-12-18 15:49 anliex 阅读(156) 评论(0) 推荐(0)
摘要: 这里有两个计算其实算是一种,一种是sql查询的时候计算一种是js计算 sql计算 SQRT( POW(111.2 * (p.bd_y - " + longitude + "), 2) + POW(111.2 * (" + latitude + " - p.bd... 阅读全文
posted @ 2018-12-10 09:23 anliex 阅读(151) 评论(0) 推荐(0)
摘要: Object obj;Long lon=Long.valueOf(String.valueOf(obj)) 阅读全文
posted @ 2018-12-04 19:55 anliex 阅读(15) 评论(0) 推荐(0)
摘要: 首先在小程序端想传递一个数组给服务端 很明显这个数组的长度是3但是看文档 被坑,在java端接收到以后的不是数组了直接变为string,本来一直使用数组遍历,后来发现根本不行,解决方案 String coupons = getPara("coupons... 阅读全文
posted @ 2018-12-04 19:33 anliex 阅读(113) 评论(0) 推荐(0)
摘要: BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); BigDecimal bignum3 = null; //加法 bignum3... 阅读全文
posted @ 2018-11-27 11:50 anliex 阅读(8) 评论(0) 推荐(0)
摘要: 这个注意写在最前面是因为微信获取公钥以后的格式问题推荐 http://www.ssleye.com/web/pkcs PKCS#1转成PKCS#8 不然会一直提示公钥不正确 ------------------------------分割线------... 阅读全文
posted @ 2018-11-26 18:27 anliex 阅读(214) 评论(0) 推荐(0)
摘要: 首先是找到一个可以在线传参数的api public class GpsToBaidu { public static JSONObject GpsToBaiDu(String latitude, String longitude) { //... 阅读全文
posted @ 2018-11-05 19:10 anliex 阅读(111) 评论(0) 推荐(0)
摘要: 下面的评论有很多想看我的postSSL的源码,这里奉上 public static String postSSL(String url, String data, String certPath, String certPass) { String DEFA... 阅读全文
posted @ 2018-10-30 14:46 anliex 阅读(102) 评论(0) 推荐(0)
摘要: 在小程序中引入weapp-qrcode.js,然后在需要转化的页面引入这个js, var QRCode=require("../../utils/weapp-qrcode.js") 页面wxml 开始 var qrcode = new QRCode('c... 阅读全文
posted @ 2018-10-08 14:34 anliex 阅读(485) 评论(0) 推荐(0)
摘要: SELECT id,seller_id,`name`,price,stock,sales,image,is_marketable FROM t_product where (seller_id =61 and active =1 and is_marke... 阅读全文
posted @ 2018-09-17 16:46 anliex 阅读(10) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页