Explorar o código

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

wangshan hai 1 ano
pai
achega
ccdceb3111
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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,
 		})