|
@ -39,7 +39,7 @@ public class PatientInterceptor extends BaseInterceptor {
|
|
}
|
|
}
|
|
response.setCharacterEncoding("UTF-8");
|
|
response.setCharacterEncoding("UTF-8");
|
|
JSONObject json = getAgent(request);
|
|
JSONObject json = getAgent(request);
|
|
logger.info("userAgent:"+json);
|
|
|
|
|
|
logger.debug("userAgent:"+json);
|
|
if (json == null) {
|
|
if (json == null) {
|
|
// 未登录
|
|
// 未登录
|
|
response.getOutputStream().write(error(SystemConf.NOT_LOGIN, "请登录后再操作!").getBytes());
|
|
response.getOutputStream().write(error(SystemConf.NOT_LOGIN, "请登录后再操作!").getBytes());
|
|
@ -50,11 +50,11 @@ public class PatientInterceptor extends BaseInterceptor {
|
|
String imei = json.has("imei") ? json.getString("imei") : "";
|
|
String imei = json.has("imei") ? json.getString("imei") : "";
|
|
String openid = json.has("openid") ? json.getString("openid") : "";
|
|
String openid = json.has("openid") ? json.getString("openid") : "";
|
|
int platform = json.has("platform") ? json.getInt("platform") : 1;
|
|
int platform = json.has("platform") ? json.getInt("platform") : 1;
|
|
logger.info("tokenStr:"+tokenStr);
|
|
|
|
logger.info("uid:"+user);
|
|
|
|
logger.info("imei:"+imei);
|
|
|
|
logger.info("openid:"+openid);
|
|
|
|
logger.info("platform:"+platform);
|
|
|
|
|
|
logger.debug("tokenStr:"+tokenStr);
|
|
|
|
logger.debug("uid:"+user);
|
|
|
|
logger.debug("imei:"+imei);
|
|
|
|
logger.debug("openid:"+openid);
|
|
|
|
logger.debug("platform:"+platform);
|
|
if (StringUtils.isEmpty(imei)) {
|
|
if (StringUtils.isEmpty(imei)) {
|
|
imei = openid;
|
|
imei = openid;
|
|
}
|
|
}
|