zwxi 10 달 전
부모
커밋
650bc5e675
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      controllers/wechat.go

+ 4 - 0
controllers/wechat.go

@@ -36,6 +36,10 @@ func (this *WechatCommonController) WechatLoginByGzh() {
 		br.ErrMsg = "Code 为空"
 		return
 	}
+	br.Msg = code
+	br.ErrMsg = "获取用户信息失败,Err:"
+	return
+
 	var token string
 	item, err := services.WxGetUserOpenIdByCodeGzh(code)
 	if err != nil {