Browse Source

Merge branch 'v4.9.6_ws' of https://jygit.jydev.jianyu360.cn/qmx/jy into v4.9.6_ws

wangshan 1 year ago
parent
commit
ccdceb3111
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/jfw/modules/bigmember/src/service/follow/enterprise.go

+ 2 - 2
src/jfw/modules/bigmember/src/service/follow/enterprise.go

@@ -180,9 +180,9 @@ func (this *FollowEnt) AddFollow() {
 	if errMsg != nil {
 		log.Printf("%s 添加关注企业出错:%s\n", userId, errMsg.Error())
 	}
-	if rData != nil && errMsg.Error() != "" {
+	if rData != nil && errMsg != nil && errMsg.Error() != "" {
 		this.ServeJson(Result{
-			Error_code: 0,
+			Error_code: -1,
 			Error_msg:  errMsg.Error(),
 			Data:       rData,
 		})