|
@@ -64,7 +64,7 @@ func CreatePortraitManager(session *httpsession.Session, pageFlag string) (*Port
|
|
|
* 3.免费用户(如免费用户、老版商机管理、老版超级订阅)通过一次留资可以解锁画像权限,查看画像的所有内容。
|
|
|
*/
|
|
|
// CreatePortraitManagerForContacts 画像通讯里权限验证
|
|
|
-func CreatePortraitManagerForContacts(session *httpsession.Session, entType int64, entName string) (*Portrait, error) {
|
|
|
+func CreatePortraitManagerForContacts(session *httpsession.Session, entType int64, entName, thisUserId string) (*Portrait, error) {
|
|
|
userid := fmt.Sprint(qutil.Int64All(session.Get("base_user_id")))
|
|
|
if userid == "" || userid == "0" {
|
|
|
return nil, errors.New("未登录")
|
|
@@ -105,7 +105,7 @@ func CreatePortraitManagerForContacts(session *httpsession.Session, entType int6
|
|
|
}
|
|
|
}
|
|
|
if bigMsg.VipStatus <= 0 || bigMsg.Vip_BuySet.Upgrade != 1 { //免费用户留资体验
|
|
|
- if jy.Portraitexperience(userid, entName, false) {
|
|
|
+ if jy.Portraitexperience(thisUserId, entName, false) {
|
|
|
return &Portrait{userid, session}, nil
|
|
|
}
|
|
|
}
|