This commit is contained in:
Mrx
2026-05-11 15:02:57 +08:00
parent 9c4fd95955
commit 467f081a1a
27 changed files with 14 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ func GetPlatformFromCtx(ctx context.Context) (string, error) {
}
switch platform {
case model.PlatformWxMini:
case model.PlatformWxMini, "mp-weixin": // 兼容旧客户端误传的 uni 平台名
return model.PlatformWxMini, nil
case model.PlatformWxH5:
return model.PlatformWxH5, nil
@@ -99,6 +99,6 @@ func GetPlatformFromCtx(ctx context.Context) (string, error) {
case model.PlatformH5:
return model.PlatformH5, nil
default:
return "", fmt.Errorf("不支持的支付平台: %s", platform)
return "", fmt.Errorf("不支持的客户端平台: %s", platform)
}
}