|
@@ -454,9 +454,7 @@ func (this *SubVipPortrait) BuyerPortrait() {
|
|
|
if buyerName == "" {
|
|
|
return nil, fmt.Errorf("参数异常")
|
|
|
}
|
|
|
- if userId == "" {
|
|
|
- return nil, fmt.Errorf("未登录")
|
|
|
- }
|
|
|
+
|
|
|
cepm, power, err, isFree := entity.CreateSubVipPortraitManagerForOpen(userId, "buyerPortrait", buyerName, false, this.Session())
|
|
|
cepm.Session = this.Session()
|
|
|
if err != nil {
|
|
@@ -484,6 +482,13 @@ func (this *SubVipPortrait) BuyerPortrait() {
|
|
|
if power == 3 {
|
|
|
rData["onTrial"] = true
|
|
|
}
|
|
|
+ if userId == "" { //未登录用户限制字段
|
|
|
+ rData = map[string]interface{}{
|
|
|
+ "city": rData["city"],
|
|
|
+ "buyerclass": rData["buyerclass"],
|
|
|
+ "province": rData["province"],
|
|
|
+ }
|
|
|
+ }
|
|
|
return rData, nil
|
|
|
}()
|
|
|
if errMsg != nil {
|