修复(#138): 补齐 errMsg 漏掉的错误码映射
新增 UserCommissionNotEnough、SendSmsError、AreaCodeIsEmpty、 DeviceBindLimitExceeded、ExistAvailableTraffic 五个错误码的中文映射, 修复管理后台审批提现等接口业务校验失败时 msg 被误显为 "Internal Server Error" 的问题。 Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -37,6 +37,7 @@ func init() {
|
||||
TelegramNotBound: "Telegram not bound ",
|
||||
UserNotBindOauth: "User not bind oauth method",
|
||||
InviteCodeError: "Invite code error",
|
||||
UserCommissionNotEnough: "佣金余额不足",
|
||||
RegisterIPLimit: "Too many registrations",
|
||||
EmailBindError: "Email already bound",
|
||||
UserBindInviteCodeExist: "Invite code already bound",
|
||||
@@ -82,6 +83,8 @@ func init() {
|
||||
// System error
|
||||
DebugModeError: "Debug mode is enabled",
|
||||
|
||||
SendSmsError: "短信发送失败",
|
||||
|
||||
GetAuthenticatorError: "Unsupported login method",
|
||||
AuthenticatorNotSupportedError: "The authenticator does not support this method",
|
||||
|
||||
@@ -94,15 +97,18 @@ func init() {
|
||||
TelephoneExist: "Telephone already exists",
|
||||
DeviceExist: "device exists",
|
||||
PasswordIsEmpty: "password is empty",
|
||||
AreaCodeIsEmpty: "国家区号不能为空",
|
||||
TelephoneError: "telephone number error",
|
||||
DeviceNotExist: "Device does not exist",
|
||||
UseridNotMatch: "Userid not match",
|
||||
DeviceBindLimitExceeded: "设备绑定数量已达上限",
|
||||
|
||||
// Order error
|
||||
OrderNotExist: "Order does not exist",
|
||||
PaymentMethodNotFound: "Payment method not found",
|
||||
OrderStatusError: "Order status error",
|
||||
InsufficientOfPeriod: "Insufficient number of period",
|
||||
ExistAvailableTraffic: "存在可用流量",
|
||||
OrderAlreadyRefunded: "Order already refunded",
|
||||
OrderRefundNoSubscription: "Refund target subscription not found",
|
||||
OrderRefundCommissionMismatch: "Refund commission source not found",
|
||||
|
||||
Reference in New Issue
Block a user