fixed wrong post URL
This commit is contained in:
@@ -3,22 +3,20 @@ apply plugin: 'com.android.library'
|
||||
android {
|
||||
signingConfigs {
|
||||
}
|
||||
compileSdkVersion 28
|
||||
compileSdkVersion 33
|
||||
defaultConfig {
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "0.1.2"
|
||||
targetSdkVersion 33
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
versionNameSuffix '0.1.2'
|
||||
}
|
||||
}
|
||||
productFlavors {
|
||||
}
|
||||
namespace 'net.irext.webapi'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
|
||||
package="net.irext.webapi">
|
||||
>
|
||||
|
||||
<application android:allowBackup="true" android:supportsRtl="true">
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ public class WebAPIs {
|
||||
|
||||
private static WebAPIs mInstance = null;
|
||||
|
||||
private static final String DEFAULT_ADDRESS = "http://irext.net";
|
||||
private static final String DEFAULT_ADDRESS = "http://srv.irext.net";
|
||||
private static final String DEFAULT_APP = "/irext-server";
|
||||
private static String URL_PREFIX = DEFAULT_ADDRESS + DEFAULT_APP;
|
||||
|
||||
@@ -93,6 +93,7 @@ public class WebAPIs {
|
||||
= MediaType.parse("application/json; charset=utf-8");
|
||||
|
||||
RequestBody body = RequestBody.create(JSON, json);
|
||||
Log.d(TAG, "post URL = " + url);
|
||||
Request request = new Request.Builder()
|
||||
.url(url)
|
||||
.post(body)
|
||||
|
||||
Reference in New Issue
Block a user