|
@@ -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,
|
|
|
})
|