Commit d41ed916 by lanrion

更新全局错误码

parent 2b583a54
......@@ -83,7 +83,45 @@ module WeixinAuthorize
46004 => "不存在的用户",
47001 => "解析JSON/XML内容错误",
48001 => "api功能未授权",
50001 => "用户未授权该api"
50001 => "用户未授权该api",
50002 => "用户受限,可能是违规后接口被封禁",
61451 => "参数错误(invalid parameter)",
61452 => "无效客服账号(invalid kf_account)",
61453 => "客服帐号已存在(kf_account exsited)",
61454 => "客服帐号名长度超过限制(仅允许10个英文字符,不包括@及@后的公众号的微信号)(invalid kf_acount length)",
61455 => "客服帐号名包含非法字符(仅允许英文+数字)(illegal character in kf_account)",
61456 => "客服帐号个数超过限制(10个客服账号)(kf_account count exceeded)",
61457 => "无效头像文件类型(invalid file type)",
61450 => "系统错误(system error)",
61500 => "日期格式错误",
61501 => "日期范围错误",
9001001 => "POST数据参数不合法",
9001002 => "远端服务不可用",
9001003 => "Ticket不合法",
9001004 => "获取摇周边用户信息失败",
9001005 => "获取商户信息失败",
9001006 => "获取OpenID失败",
9001007 => "上传文件缺失",
9001008 => "上传素材的文件类型不合法",
9001009 => "上传素材的文件尺寸不合法",
9001010 => "上传失败",
9001020 => "帐号不合法",
9001021 => "已有设备激活率低于50%,不能新增设备",
9001022 => "设备申请数不合法,必须为大于0的数字",
9001023 => "已存在审核中的设备ID申请",
9001024 => "一次查询设备ID数量不能超过50",
9001025 => "设备ID不合法",
9001026 => "页面ID不合法",
9001027 => "页面参数不合法",
9001028 => "一次删除页面ID数量不能超过10",
9001029 => "页面已应用在设备中,请先解除应用关系再删除",
9001030 => "一次查询页面ID数量不能超过50",
9001031 => "时间区间不合法",
9001032 => "保存设备与页面的绑定关系参数错误",
9001033 => "门店ID不合法",
9001034 => "设备备注信息过长",
9001035 => "设备申请参数不合法",
9001036 => "查询起始值begin不合法"
}unless defined?(GLOBAL_CODES)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment