语言包

接口说明: 语言包英文对照

  • 异常处理的抛出错误
codemessagestaticdetail
unknown_error未知错误(公共错误名)500
category_not_found分类未找到500
censor_not_passed检查未通过500
sms_interval短信间隔错误
model_not_found模型未找到404
route_not_found路由未找到404
no_bind_user未绑定用户400
sms_verify_error短信验证错误
thread_count_fail主题数操作错误
thread_behavior_fail主题状态异常
thread_action_fail主题操作异常
update_permission_error404
upload_error上传图片失败404
file_not_allow
scale_sum_not_10分成比例相加必须为 10
cannot_delete_category_with_threads无法删除存在主题的分类
cannot_create_image_thread_without_attachments发表图片帖必须带有图片
user_update_error修改信息失败
uninitialized_pay_password未初始化支付密码
invalid_emoji_path无效的表情目录
  • 代码中的抛出错误
codemessagestaticdetail
upload_time_not_up一天仅允许修改一次头像404
wallet_error
validation_error表单验证错误422detail
permission_denied没有权限401
ban_user您的账号被禁用,无法访问本站点401
register_validate帐号审核中,请审核通过后尝试401
register_close注册关闭401
validate_ignore帐号审核忽略,请联系管理员401
validate_reject帐号审核拒绝,请联系管理员401
user_deny您在对方的黑名单中401
not_authenticated
file_type_not_allow文件类型不允许
file_size_not_allow文件大小不允许
content_banned
login_failed帐号或密码错误403登录失败,您还可以尝试 N 次
login_failures_times_toplimit密码错误次数达到 5 次,请 15 分钟后再次尝试402
cannot_delete_category_with_threads
Cannot delete the default group
No Qcloud Service was specified.
File must be readable.
trade_error交易错误500detail
order_post_not_found订单错误500订单主题不存在
order_type_error订单错误500订单类型有误
order_create_failure订单错误500订单创建失败
order_amount_error提现错误500订单金额有误
operate_type_error钱包错误500操作类型不存在
wallet_status_error钱包错误500钱包状态有误
operate_forbidden提现审核错误500非法操作
available_amount_error提现错误500钱包可用金额不足
cash_interval_time提现错误500提现处于限制间隔天数内
cash_sum_limit提现错误500超出每日提现金额限制
available_amount_error提现错误500钱包可用金额不足
status_cash_freeze提现错误500钱包已冻结提现
mobile_is_already_bind手机号码已存在500
post_not_comment不能回复,回复回帖的内容500
post_not_fond未查询到该条回复500
setting_fill_register_reason注册时的注册原因必须必填500
notification_is_missing_template_config微信推送信息不全500
tencent_secret_key_error腾讯云 Secretid 或 SecretKey 不正确500
tencent_vod_transcode_error腾讯云云点播转码模板未设置500
tencent_vod_subappid_error腾讯云云点播子应用错误500
pay_password_failures_times_toplimit您输入的密码错误次数已超限,请在次日重试或重置500
bind_error小程序登录时,绑定用户被删除500
wechat_mobile_unbound微信未绑定手机号500
unable_to_get_location无法获取地理位置404
  • 框架中的抛出错误
codemessagestaticdetail
No Socialite driver was specified.
Notification is missing toDatabase / toArray method.
MariaDB version too low. You need at least MariaDB 10.0.5
Notification is missing toArray method.
MySQL version too low. You need at least MySQL 5.6.
Serializer must be an instance of […]
Callback must be a callable or a ‘Class@method’ string.
Policy not defined for […]
You must set the gate user with forUser()
Controller must be an instance of […]
The search builder is undefined.
Route [$name] not found
Invalid request handler: %s
Cache store [{$name}] is not defined.
Driver [{$config[‘driver’]}] is not supported.
not found user id
A non-empty PSR-4 prefix must end with a namespace separator.
Unable to detect application namespace.

特殊处理数据格式

  • validation_error

用户注册需要弹出detail,用户登录就不需要弹出

  1. {
  2. "errors": [
  3. {
  4. "status": "422",
  5. "code": "validation_error",
  6. "detail": [
  7. "密码 至少为 6 个字符。",
  8. "密码 格式不正确。"
  9. ],
  10. "source": {
  11. "pointer": "/data/attributes/password"
  12. }
  13. }
  14. ]
  15. }