|
@@ -189,6 +189,7 @@ class NetUtil { |
|
|
onError(result[GlobalConfig.HTTP_RESPONSE_KEY_MSG] ?? '未知错误'); |
|
|
onError(result[GlobalConfig.HTTP_RESPONSE_KEY_MSG] ?? '未知错误'); |
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
|
|
|
Logger.error('error: ' + e.toString()); |
|
|
if (onError != null) { |
|
|
if (onError != null) { |
|
|
onError(e?.toString() ?? '未知错误'); |
|
|
onError(e?.toString() ?? '未知错误'); |
|
|
} |
|
|
} |
|
|