fuwencai 1 سال پیش
والد
کامیت
d5a1f6ef4c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/jfw/modules/bigmember/src/service/follow/enterprise.go

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

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