fix alipay return
This commit is contained in:
@@ -246,7 +246,7 @@ func (h *FinanceHandler) HandleAlipayReturn(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 根据环境确定前端域名
|
||||
frontendDomain := "https://www.tianyuanapi.com"
|
||||
frontendDomain := "https://console.tianyuanapi.com"
|
||||
if gin.Mode() == gin.DebugMode {
|
||||
frontendDomain = "http://localhost:5173"
|
||||
}
|
||||
@@ -269,7 +269,7 @@ func (h *FinanceHandler) HandleAlipayReturn(c *gin.Context) {
|
||||
|
||||
// redirectToFailPage 跳转到失败页面
|
||||
func (h *FinanceHandler) redirectToFailPage(c *gin.Context, outTradeNo, reason string) {
|
||||
frontendDomain := "https://www.tianyuanapi.com"
|
||||
frontendDomain := "https://console.tianyuanapi.com"
|
||||
if gin.Mode() == gin.DebugMode {
|
||||
frontendDomain = "http://localhost:5173"
|
||||
}
|
||||
@@ -281,7 +281,7 @@ func (h *FinanceHandler) redirectToFailPage(c *gin.Context, outTradeNo, reason s
|
||||
|
||||
// redirectToProcessingPage 跳转到处理中页面
|
||||
func (h *FinanceHandler) redirectToProcessingPage(c *gin.Context, outTradeNo, amount string) {
|
||||
frontendDomain := "https://www.tianyuanapi.com"
|
||||
frontendDomain := "https://console.tianyuanapi.com"
|
||||
if gin.Mode() == gin.DebugMode {
|
||||
frontendDomain = "http://localhost:5173"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user