zwxi 10 months ago
parent
commit
0428faad6a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/user.go

+ 3 - 0
services/user.go

@@ -19,6 +19,9 @@ func formatWxUserAndUserRecord(wxUser *models.WxUserItem, userRecord *models.Cyg
 	//wxUser.BindAccount = userRecord.BindAccount
 	//wxUser.BindAccount = userRecord.BindAccount
 	wxUser.Headimgurl = userRecord.Headimgurl
 	wxUser.Headimgurl = userRecord.Headimgurl
 	//wxUser.SessionKey = userRecord.SessionKey
 	//wxUser.SessionKey = userRecord.SessionKey
+	if wxUser.Headimgurl == "" {
+		wxUser.Headimgurl = utils.HeadimgurlDefault
+	}
 }
 }
 
 
 func GetWxUserItemByOpenId(unionId string) (item *models.WxUserItem, err error) {
 func GetWxUserItemByOpenId(unionId string) (item *models.WxUserItem, err error) {