zwxi 10 meses atrás
pai
commit
650bc5e675
1 arquivos alterados com 4 adições e 0 exclusões
  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 {