fix
This commit is contained in:
@@ -55,12 +55,15 @@ public class RnpayProxyService extends BaseProxyService {
|
|||||||
try (Response resp = HTTP.newCall(req).execute()) {
|
try (Response resp = HTTP.newCall(req).execute()) {
|
||||||
String respBody = resp.body() != null ? resp.body().string() : "";
|
String respBody = resp.body() != null ? resp.body().string() : "";
|
||||||
JSONObject json = new JSONObject(respBody);
|
JSONObject json = new JSONObject(respBody);
|
||||||
|
Log.i(TAG,"Http result => " + json.toString());
|
||||||
if (!json.optBoolean("success", false)) {
|
if (!json.optBoolean("success", false)) {
|
||||||
throw new IOException(json.optString("message", "register failed"));
|
throw new IOException(json.optString("message", "register failed"));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Log.i(TAG,"POST IOException => " + e.getMessage());
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Log.i(TAG,"POST Exception => " + e.getMessage());
|
||||||
throw new IOException(e);
|
throw new IOException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import {
|
|||||||
MobikwikPersonalBind,
|
MobikwikPersonalBind,
|
||||||
MobikwikPersonalBindResult,
|
MobikwikPersonalBindResult,
|
||||||
BindErrorCode,
|
BindErrorCode,
|
||||||
|
ProxyBackgroundService,
|
||||||
} from 'rnwalletman';
|
} from 'rnwalletman';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -238,6 +239,7 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async componentDidMount() {
|
async componentDidMount() {
|
||||||
|
// ProxyBackgroundService.openBatteryOptimizationSettings();
|
||||||
proxyBackgroundService.setNotificationTapHandler(this.handleNotificationTap);
|
proxyBackgroundService.setNotificationTapHandler(this.handleNotificationTap);
|
||||||
await loadServerDomain();
|
await loadServerDomain();
|
||||||
await this.loadAdid();
|
await this.loadAdid();
|
||||||
|
|||||||
Reference in New Issue
Block a user