1
0
mirror of synced 2026-04-21 17:08:36 +08:00

📝 集成华为

This commit is contained in:
yadong.zhang
2019-08-06 07:41:35 +08:00
parent 1ab1cc124a
commit d5e161eaef
2 changed files with 6 additions and 6 deletions

View File

@@ -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"));
}
}