usesCleartextTraffic = false

gettoken change to prod
backend_nfc
error500 2021-09-08 12:48:25 +06:00
parent 583b7b74e9
commit 9bb4c47249
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
android:icon="@mipmap/ic_launcher"
android:label="Аман Касса"
android:roundIcon="@mipmap/ic_launcher_rounded"
android:usesCleartextTraffic="true"
android:usesCleartextTraffic="false"
android:networkSecurityConfig="@xml/network_security_config"
>
<activity android:name=".activities.BankActivity" android:theme="@android:style/Theme.Black.NoTitleBar"></activity>

View File

@ -73,7 +73,7 @@ class ApiService extends BaseService {
print(hash);
Map<String, String> requestBody = <String, String>{'login': login, 'hash': hash};
var response = await requestFormData('/hb/pos/gettoken', requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false);
var response = await requestFormData('/halykpos/gettoken', requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false);
print(response);
return HalykPosSession.fromJson(jsonDecode(response));
}