|
@@ -332,6 +332,9 @@ func (this *SubVipPortrait) BuyerNewMsg() {
|
|
|
if buyer == "" {
|
|
|
return nil, fmt.Errorf("参数异常")
|
|
|
}
|
|
|
+ if userId == "" {
|
|
|
+ return nil, fmt.Errorf("未登录")
|
|
|
+ }
|
|
|
pageNum, _ := this.GetInteger("pageNum")
|
|
|
pageSize, _ := this.GetInteger("pageSize")
|
|
|
cepm, power, err, _ := entity.CreateSubVipPortraitManagerForOpen(userId, "buyerPortrait", buyer, false, this.Session())
|
|
@@ -451,6 +454,9 @@ 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 {
|