📝 集成华为
This commit is contained in:
@@ -186,10 +186,10 @@ public class AuthHuaweiRequest extends AuthDefaultRequest {
|
||||
* @param object 接口返回的结果
|
||||
*/
|
||||
private void checkResponse(JSONObject object) {
|
||||
if (object.containsKey("NSP_STATUS")) {
|
||||
throw new AuthException(object.getString("error"));
|
||||
}
|
||||
if (object.containsKey("error")) {
|
||||
if (!object.containsKey("sub_error") && !object.containsKey("error_description")) {
|
||||
throw new AuthException(object.getString("error"));
|
||||
}
|
||||
throw new AuthException(object.getString("sub_error") + ":" + object.getString("error_description"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user