浏览代码

查研观向pc_6.0

xingzai 2 年之前
父节点
当前提交
027c89bde0
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 4 1
      controllers/activity.go
  2. 4 3
      models/activity.go

+ 4 - 1
controllers/activity.go

@@ -3608,9 +3608,12 @@ func (this *ActivityCoAntroller) SpecialList() {
 		br.ErrMsg = "获取客户详情失败,Err:" + err.Error()
 		return
 	}
-	if count == 1 {
+	if count == 1 && user.UserId > 0 {
 		resp.IsFollow = true
 	}
+	if user.Mobile != "" {
+		resp.IsBindingMobile = true
+	}
 	resp.List = list
 	resp.Paging = page
 	br.Ret = 200

+ 4 - 3
models/activity.go

@@ -613,9 +613,10 @@ type CygxActivitySpecialDetail struct {
 }
 
 type GetCygxActivitySpecialDetailListResp struct {
-	IsFollow bool               `description:"是否关注新调研通知"`
-	Paging   *paging.PagingItem `description:"分页数据"`
-	List     []*CygxActivitySpecialDetail
+	IsFollow        bool               `description:"是否关注新调研通知"`
+	IsBindingMobile bool               `description:"是否绑定了手机号"`
+	Paging          *paging.PagingItem `description:"分页数据"`
+	List            []*CygxActivitySpecialDetail
 }
 
 type CygxActivitySpecialResp struct {