|
@@ -487,44 +487,4 @@ public class WxLoginController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- @RequestMapping(value = "ce", method = {RequestMethod.GET, RequestMethod.POST}, produces = {"application/json;charset=UTF-8"})
|
|
|
- public ApiMessage<Object> cd() throws IOException {
|
|
|
- //String geoUrl = MapUtils.getGeoUrl("上海市上海市浦东新区航头路166号"); //获取地理编码url
|
|
|
- String ss = MapUtils.sendAddress("上海市上海市浦东新区航头路166号");
|
|
|
- String longitudeAndLatitude = MapUtils.getLongitudeAndLatitude(ss); //获取经纬度
|
|
|
-
|
|
|
-
|
|
|
- return new ApiMessage<>(true, "400", "ok", longitudeAndLatitude + ss);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-/* @RequestMapping(value = "ces", method = {RequestMethod.GET, RequestMethod.POST}, produces = {"application/json;charset=UTF-8"})
|
|
|
- public ApiMessage<Object> ces(){
|
|
|
- JSONObject access_token = CommonUtil.httpsRequestToJsonObject("https://restapi.amap.com/v3/geocode/geo?address=上海市上海火车站&key=7fd479f089890bbf4392e0911604f80a", "GET", null);
|
|
|
- System.err.println(access_token);
|
|
|
- JSONObject get = HttpRequestUtil.httpRequest("https://restapi.amap.com/v3/geocode/geo", "GET", "address=上海市上海火车站&key=7fd479f089890bbf4392e0911604f80a");
|
|
|
- System.err.println("get"+get);
|
|
|
- return new ApiMessage<>(true, "400", "ok",address());
|
|
|
- }*/
|
|
|
-
|
|
|
-
|
|
|
- @RequestMapping("sendsms.html")
|
|
|
- @ResponseBody
|
|
|
- public AjaxMessage<Object> sendSMS(HttpServletRequest request,HttpSession session,
|
|
|
- @RequestParam(required = false, defaultValue = "") String phone) throws Exception {
|
|
|
-
|
|
|
- Integer sendCoeds = (int) ((Math.random() * 9 + 1) * 100000);
|
|
|
-
|
|
|
-
|
|
|
- String url = "http://www.uoleem.com.cn/api/";// 应用地址
|
|
|
-
|
|
|
- String username = "shjieguan";// 账号
|
|
|
- String pwd = "Shjieguan";// 密码
|
|
|
- String mobile = phone;// 手机号码,多个号码使用","分割
|
|
|
- String content = "【附近养车】校验码:" + sendCoeds+"" + ",您正在通过短信验证码登录,请尽快操作!";//短信内容
|
|
|
- HttpSender.batchSend(url, username, pwd, mobile, content);
|
|
|
- return new AjaxMessage<>(true, "", sendCoeds+"");
|
|
|
- }
|
|
|
-
|
|
|
}
|