|
|
@ -62,6 +62,10 @@ public class WechatController extends BaseController {
|
|
|
|
HttpResult data = HttpClientUtil.httpGet(urlPath.toString());
|
|
|
|
HttpResult data = HttpClientUtil.httpGet(urlPath.toString());
|
|
|
|
//http返回参数
|
|
|
|
//http返回参数
|
|
|
|
if (data.getCode() == 200) {
|
|
|
|
if (data.getCode() == 200) {
|
|
|
|
|
|
|
|
if(data.getMessage().contains("errcode")){
|
|
|
|
|
|
|
|
// sessionkey已过期
|
|
|
|
|
|
|
|
return fail("0012");
|
|
|
|
|
|
|
|
}
|
|
|
|
String openid = JSONObject.parseObject(data.getMessage()).get("openid").toString();
|
|
|
|
String openid = JSONObject.parseObject(data.getMessage()).get("openid").toString();
|
|
|
|
String sessionKey = JSONObject.parseObject(data.getMessage()).get("session_key").toString();
|
|
|
|
String sessionKey = JSONObject.parseObject(data.getMessage()).get("session_key").toString();
|
|
|
|
|
|
|
|
|
|
|
|