新增未登录状态下的假资料展示,优化用户卡片界面,允许用户点击登录以打开登录弹窗。同时,更新登录弹窗样式,增加取消按钮,提升用户体验和交互性。

This commit is contained in:
乘风
2026-02-10 10:39:39 +08:00
parent e6fa0b8e0d
commit e295f55fd9
9 changed files with 162 additions and 78 deletions

View File

@@ -173,8 +173,10 @@ func AdminWithdrawalsAction(c *gin.Context) {
result, err := wechat.InitiateTransfer(params)
if err != nil {
// 未初始化转账客户端:仅标记为 success提示线下打款
if err.Error() == "转账客户端未初始化" {
errMsg := err.Error()
fmt.Printf("[AdminWithdrawals] 发起转账失败 id=%s: %s\n", body.ID, errMsg)
// 未初始化或未配置转账:仅标记为已打款并提示线下处理(与 transfer 包返回文案一致)
if errMsg == "支付/转账未初始化,请先调用 wechat.Init" || errMsg == "转账客户端未初始化" {
_ = db.Model(&w).Updates(map[string]interface{}{
"status": "success",
"processed_at": now,
@@ -185,8 +187,8 @@ func AdminWithdrawalsAction(c *gin.Context) {
})
return
}
// 其他打款失败:记失败原因
failMsg := err.Error()
// 其他打款失败(含调用腾讯接口失败):记失败原因
failMsg := errMsg
_ = db.Model(&w).Updates(map[string]interface{}{
"status": "failed",
"fail_reason": failMsg,