Commit 5ee9a4c4 by huluobin

update

parent bb16db54
package com.gogirl.infrastructure.util;
import com.gogirl.domain.xcx.GogirlToken;
import com.gogirl.infrastructure.common.exception.RRException;
public class SessionUtils {
......@@ -36,7 +37,11 @@ public class SessionUtils {
public static Integer getTechnicianId() {
return technicianTokenThreadLocal.get().getTechnicianId();
GogirlToken gogirlToken = technicianTokenThreadLocal.get();
if (gogirlToken == null) {
throw new RRException(2000, "token已经失效,请重新登陆");
}
return gogirlToken.getTechnicianId();
}
public static Integer getCustomerId() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment