public class APIStatus
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
STATUS_AK_DELETE
无效 ak
|
static int |
STATUS_CP_ERROR
第三方接口返回失败
|
static int |
STATUS_INVALID_DIGITAL_SIGNA
数字签名验证失败
|
static int |
STATUS_INVALID_DOMAIN
域名验证失败
|
static int |
STATUS_INVALID_IP
IP 白名单验证失败
|
static int |
STATUS_INVALID_USER_SCODE
安全码未通过验证
需要开发者判定 ak 绑定的 SHA1,package
是否与 sdk 包里的一致
|
static int |
STATUS_MISSING_PARAMS
缺少必填参数或者拼写错误
|
static int |
STATUS_NETWORK_ERROR
网络错误
|
static int |
STATUS_NO_PERMISSION
无权限访问该服务
用户未购买该服务,如果需要申请支持,
请提交工单联系我们
|
static int |
STATUS_OK
成功 服务请求正常返回
|
static int |
STATUS_SERVICE_BUSY
服务器繁忙
|
static int |
STATUS_SERVICE_UNKNOWN
无效地址
|
static int |
STATUS_UNKNOWN_ERROR
其他未知错误
如果多次调用依然报此错误码,请提交工
单联系我们
|
static int |
STATUS_VERSION_ERROR
版本号传递错误 没有此版本程序,请检查版本号
|
static int |
STATUS_VISITS_DAY_EXCESS
访问超出日访问量
开发者的日访问量超限,被系统自动封停,
第二天 0:00 会自动解封
|
static int |
STATUS_VISITS_HOUR_EXCESS
单位时间内访问过于频繁
开发者的单位时间内(1 小时)访问量超限,
被系统自动封停,下一小时自动解封
|
static int |
STATUS_VISITS_SECOND_EXCESS
单位时间内访问过于频繁
开发者的单位时间内(1 分钟)访问量超限,
被系统自动封停,下一分钟自动解封
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getMessage()
获取 API错误信息
|
int |
getStatus()
获取 API状态码
|
void |
setMessage(java.lang.String message)
设置 API错误信息
|
void |
setStatus(int status)
设置 API状态码
|
java.lang.String |
toString() |
public static final int STATUS_OK
public static final int STATUS_AK_DELETE
public static final int STATUS_NO_PERMISSION
public static final int STATUS_INVALID_DOMAIN
public static final int STATUS_INVALID_IP
public static final int STATUS_INVALID_DIGITAL_SIGNA
public static final int STATUS_INVALID_USER_SCODE
public static final int STATUS_VISITS_DAY_EXCESS
public static final int STATUS_VISITS_SECOND_EXCESS
public static final int STATUS_VISITS_HOUR_EXCESS
public static final int STATUS_SERVICE_BUSY
public static final int STATUS_SERVICE_UNKNOWN
public static final int STATUS_MISSING_PARAMS
public static final int STATUS_UNKNOWN_ERROR
public static final int STATUS_CP_ERROR
public static final int STATUS_VERSION_ERROR
public static final int STATUS_NETWORK_ERROR
public APIStatus()
public APIStatus(int status, java.lang.String message)
public java.lang.String toString()
toString
在类中 java.lang.Object
public int getStatus()
public void setStatus(int status)
status
- API状态码public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- API错误信息©2017-2019 四维智联科技有限公司 版权所有 京ICP证 030779-2号-1京公网安备 11010502030327号