diff --git a/html/home.html b/html/home.html
index edaa8ca..151e57c 100644
--- a/html/home.html
+++ b/html/home.html
@@ -2,7 +2,7 @@
-
+
个人中心
diff --git a/src/main/java/com/yutou/controller/Web/MainView.java b/src/main/java/com/yutou/controller/Web/MainView.java
index a5bec73..5ced540 100644
--- a/src/main/java/com/yutou/controller/Web/MainView.java
+++ b/src/main/java/com/yutou/controller/Web/MainView.java
@@ -13,6 +13,11 @@ public class MainView {
return "/home.html";
}
+ @RequestMapping("/")
+ public String mainHome(HttpServletRequest request) {
+
+ return "/index.html";
+ }
@RequestMapping("/html/permission.html")
public String permission(HttpServletRequest request) {
diff --git a/src/main/java/com/yutou/controller/android/SystemController.java b/src/main/java/com/yutou/controller/android/SystemController.java
index a2f61d2..4d8fe77 100644
--- a/src/main/java/com/yutou/controller/android/SystemController.java
+++ b/src/main/java/com/yutou/controller/android/SystemController.java
@@ -49,12 +49,13 @@ public class SystemController {
@ResponseBody
public String addFeedBack(HttpServletRequest request) {
JSONObject json=new JSONObject();
- if(!(boolean) request.getAttribute(LOGINSTATE)) {
+ int uid_ = Tools.getUidOfToken(request);
+ if (uid_ == 0) {
json.put("code", UserEnum.LOGIN_NOT_LOGIN.code);
json.put("msg", UserEnum.LOGIN_NOT_LOGIN.msg);
return json.toString();
}
- String uid=(String) request.getAttribute("uid");
+ String uid=uid_+"";
String context=request.getParameter("context");
String sysinfo=request.getParameter("sysinfo");
int _uid=0;
@@ -70,8 +71,9 @@ public class SystemController {
}
json.put("code", 100);
json.put("msg", systemService.addFeedBack(_uid, context, sysinfo)==1?"提交成功":"提交失败");
+ UUserdata udata=user.getUUserData(Integer.parseInt(uid));
+ Tools.getHTTPUrlString("https://sc.ftqq.com/SCU64034T5adf5c5940dcecc016e0e9d0cf9b1e725da126ff47475.send?text=盒子问题反馈&desp="+"来自uid:"+uid+"的问题反馈\n"+context+"\n系统信息:"+sysinfo+"\n对方邮箱:"+udata.getEmail());
try {
- UUserdata udata=user.getUUserData(Integer.valueOf(uid));
EmailTools.send("583819556@qq.com", "盒子问题反馈", "来自uid:"+uid+"的问题反馈\n"+context+"\n系统信息:"+sysinfo+"\n对方邮箱:"+udata.getEmail());
} catch (Exception e) {
// TODO: handle exception