mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
fix: fixed bug for HuPiPay qrcode generation. set field 'openid' of result struct to Any data type
This commit is contained in:
parent
6949f1328c
commit
3d37087916
@ -95,6 +95,8 @@ ChatGLM,讯飞星火,文心一言等多个平台的大语言模型。集成了
|
|||||||
|
|
||||||
## 项目文档
|
## 项目文档
|
||||||
|
|
||||||
|
**最新的部署视频教程:[https://www.bilibili.com/video/BV1ge411C7uA/](https://www.bilibili.com/video/BV1ge411C7uA/?vd_source=dee8b15703ccfcbd24a60ee9a0fabb73)**
|
||||||
|
|
||||||
详细的部署和开发文档请参考 [**ChatGPT-Plus 文档**](https://ai.r9it.com/docs/)。
|
详细的部署和开发文档请参考 [**ChatGPT-Plus 文档**](https://ai.r9it.com/docs/)。
|
||||||
|
|
||||||
加微信进入微信讨论群可获取 **一键部署脚本(添加好友时请注明来自Github!!!)。**
|
加微信进入微信讨论群可获取 **一键部署脚本(添加好友时请注明来自Github!!!)。**
|
||||||
|
@ -156,6 +156,7 @@ func authorizeMiddleware(s *AppServer, client *redis.Client) gin.HandlerFunc {
|
|||||||
c.Request.URL.Path == "/api/mj/jobs" ||
|
c.Request.URL.Path == "/api/mj/jobs" ||
|
||||||
c.Request.URL.Path == "/api/invite/hits" ||
|
c.Request.URL.Path == "/api/invite/hits" ||
|
||||||
c.Request.URL.Path == "/api/sd/jobs" ||
|
c.Request.URL.Path == "/api/sd/jobs" ||
|
||||||
|
c.Request.URL.Path == "/api/upload" ||
|
||||||
strings.HasPrefix(c.Request.URL.Path, "/test/") ||
|
strings.HasPrefix(c.Request.URL.Path, "/test/") ||
|
||||||
strings.HasPrefix(c.Request.URL.Path, "/api/sms/") ||
|
strings.HasPrefix(c.Request.URL.Path, "/api/sms/") ||
|
||||||
strings.HasPrefix(c.Request.URL.Path, "/api/captcha/") ||
|
strings.HasPrefix(c.Request.URL.Path, "/api/captcha/") ||
|
||||||
|
@ -99,14 +99,15 @@ func (h *PaymentHandler) DoPay(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var r struct {
|
var r struct {
|
||||||
Openid int64 `json:"openid"`
|
Openid interface{} `json:"openid"`
|
||||||
UrlQrcode string `json:"url_qrcode"`
|
UrlQrcode string `json:"url_qrcode"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
ErrCode int `json:"errcode"`
|
ErrCode int `json:"errcode"`
|
||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg,omitempty"`
|
||||||
}
|
}
|
||||||
err = utils.JsonDecode(res, &r)
|
err = utils.JsonDecode(res, &r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
logger.Debugf(res)
|
||||||
resp.ERROR(c, "error with decode payment result: "+err.Error())
|
resp.ERROR(c, "error with decode payment result: "+err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user