|
@@ -12,18 +12,19 @@ import (
|
|
|
|
|
|
"app.yhyue.com/moapp/jypkg/public"
|
|
|
|
|
|
+ "strings"
|
|
|
+ "time"
|
|
|
+
|
|
|
util "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/encrypt"
|
|
|
. "app.yhyue.com/moapp/jybase/mongodb"
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
|
-
|
|
|
- "strings"
|
|
|
- "time"
|
|
|
+ usercenter "app.yhyue.com/moapp/jybase/usercenter"
|
|
|
)
|
|
|
|
|
|
var mongodb = public.MQFW
|
|
|
var se = &encrypt.SimpleEncrypt{Key: "topnet2015topnet2015"}
|
|
|
-
|
|
|
+var Sysconfig map[string]interface{}
|
|
|
var AC = &encrypt.AES_CBC{
|
|
|
Key: "mGlAgnIBB8bx2nch",
|
|
|
Iv: "1389461544135476",
|
|
@@ -143,7 +144,7 @@ func GetSessionVal(q map[string]interface{}) (*map[string]interface{}, map[strin
|
|
|
//
|
|
|
entId := util.Int64All(sessionVal["entId"])
|
|
|
uid := util.ObjToString(sessionVal["userId"])
|
|
|
- identity := usercenter.GetUserIdentity(util.ObjToString(config.Sysconfig["userCenterApi"]), uid, int64(base_uid), entId, &http.Cookie{})
|
|
|
+ identity := usercenter.GetUserIdentity(util.ObjToString(Sysconfig["userCenterApi"]), uid, int64(base_uid), entId, &http.Cookie{})
|
|
|
if identity != nil {
|
|
|
if identity.PersonId > 0 {
|
|
|
sessionVal["personId"] = identity.PersonId
|