diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index fb7f4a8..b589d56 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml
deleted file mode 100644
index 63a2f6c..0000000
--- a/.idea/deploymentTargetDropDown.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index bdd9278..773fe0f 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,7 +1,6 @@
-
-
+
diff --git a/app/build.gradle b/app/build.gradle
index 6ae8c8c..0dd4dc8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -7,7 +7,7 @@ android {
compileSdk gCompileSdkVersion
defaultConfig {
- applicationId "com.tenlionsoft.xzdisplay"
+ applicationId "com.tengshisoft.displaysystem"
minSdk gMinSdkVersion
targetSdk gTargetSdkVersion
versionCode gVersionCode
diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json
index 59e1e1c..da18ba1 100644
--- a/app/release/output-metadata.json
+++ b/app/release/output-metadata.json
@@ -4,15 +4,15 @@
"type": "APK",
"kind": "Directory"
},
- "applicationId": "com.tenlionsoft.xzdisplay",
+ "applicationId": "com.tengshisoft.displaysystem",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
- "versionCode": 27,
- "versionName": "1.2.7",
+ "versionCode": 28,
+ "versionName": "1.2.8",
"outputFile": "app-release.apk"
}
],
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index b9780c2..2c95ad2 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -19,6 +19,7 @@
android:fullBackupContent="@xml/backup_rules"
android:icon="@drawable/app_logo"
android:label="@string/app_name"
+ android:networkSecurityConfig="@xml/network_config"
android:roundIcon="@drawable/app_logo"
android:supportsRtl="true"
android:theme="@style/Theme.Xzdisplay"
diff --git a/app/src/main/assets/html/xz_screen/contact.html b/app/src/main/assets/html/xz_screen/contact.html
index 928b172..0214a4c 100755
--- a/app/src/main/assets/html/xz_screen/contact.html
+++ b/app/src/main/assets/html/xz_screen/contact.html
@@ -102,7 +102,7 @@
date: '',
time: '',
url: '',
- sourcePath: '/route/file/downloadfile/false/',
+ sourcePath: '/route/file/download/false/',
menuList: [],
floorList: [],
temperature: '',
diff --git a/app/src/main/assets/html/xz_screen/detail.html b/app/src/main/assets/html/xz_screen/detail.html
index bd3d6c6..9cf4019 100755
--- a/app/src/main/assets/html/xz_screen/detail.html
+++ b/app/src/main/assets/html/xz_screen/detail.html
@@ -84,7 +84,7 @@
date: '',
time: '',
url: '',
- sourcePath: '/route/file/downloadfile/false/',
+ sourcePath: '/route/file/download/false/',
menuList: [],
floorList: [],
temperature: '',
diff --git a/app/src/main/assets/html/xz_screen/img-list.html b/app/src/main/assets/html/xz_screen/img-list.html
index 9745566..0026be7 100755
--- a/app/src/main/assets/html/xz_screen/img-list.html
+++ b/app/src/main/assets/html/xz_screen/img-list.html
@@ -86,7 +86,7 @@
date: '',
time: '',
url: '',
- sourcePath: '/route/file/downloadfile/false/',
+ sourcePath: '/route/file/download/false/',
menuList: [],
floorList: [],
temperature: '',
diff --git a/app/src/main/assets/html/xz_screen/list.html b/app/src/main/assets/html/xz_screen/list.html
index 171466e..8c0f0a7 100755
--- a/app/src/main/assets/html/xz_screen/list.html
+++ b/app/src/main/assets/html/xz_screen/list.html
@@ -87,7 +87,7 @@
date: '',
time: '',
url: '',
- sourcePath: '/route/file/downloadfile/false/',
+ sourcePath: '/route/file/download/false/',
menuList: [],
floorList: [],
temperature: '',
diff --git a/app/src/main/assets/html/xz_screen/venue-guide.html b/app/src/main/assets/html/xz_screen/venue-guide.html
index 651dac7..4b84ad7 100755
--- a/app/src/main/assets/html/xz_screen/venue-guide.html
+++ b/app/src/main/assets/html/xz_screen/venue-guide.html
@@ -93,7 +93,7 @@
date: '2020-01-01',
time: '00:00:00',
url: '',
- sourcePath: '/route/file/downloadfile/false/',
+ sourcePath: '/route/file/download/false/',
menuList: [],
floorList: [],
temperature: '',
@@ -210,6 +210,8 @@
},
mounted: function () {
var self = this
+
+
self.url = localStorage.getItem('url')
self.deviceCode = localStorage.getItem('deviceCode')
setInterval(function () {
diff --git a/app/src/main/assets/html/xz_screen/venue-intro.html b/app/src/main/assets/html/xz_screen/venue-intro.html
index f96c010..1034874 100755
--- a/app/src/main/assets/html/xz_screen/venue-intro.html
+++ b/app/src/main/assets/html/xz_screen/venue-intro.html
@@ -77,7 +77,7 @@
date: '',
time: '',
url: '',
- sourcePath: '/route/file/downloadfile/false/',
+ sourcePath: '/route/file/download/true/',
menuList: [],
venueIntro: {},
tab: '*',
diff --git a/app/src/main/assets/html/xz_screen49/img-mid.html b/app/src/main/assets/html/xz_screen49/img-mid.html
index ba7c254..44013a6 100755
--- a/app/src/main/assets/html/xz_screen49/img-mid.html
+++ b/app/src/main/assets/html/xz_screen49/img-mid.html
@@ -15,7 +15,7 @@
-
-
+
diff --git a/app/src/main/assets/html/xz_screen49/index.html b/app/src/main/assets/html/xz_screen49/index.html
index 4fcf555..de16788 100755
--- a/app/src/main/assets/html/xz_screen49/index.html
+++ b/app/src/main/assets/html/xz_screen49/index.html
@@ -39,7 +39,7 @@
playing: {},
toTop: 0,
sideList: [],
- sourcePath: '/route/file/downloadfile/true/'
+ sourcePath: '/route/file/download/true/'
},
methods: {
changeVideo: function (idx) {
@@ -93,8 +93,8 @@
var self = this
self.url = window.AppInterface.getBaseUrl()
self.deviceCode = window.AppInterface.getDeviceCode()
- // self.url = 'https://www.wgink.ink/show'
- // self.deviceCode = 'RKZ01H13'
+ // self.url = 'https://www.xzszwhy.cn/show'
+ // self.deviceCode = 'RKZ01H11'
localStorage.setItem('url', self.url)
localStorage.setItem('deviceCode', self.deviceCode)
self.getList()
diff --git a/app/src/main/java/com/tenlionsoft/xzdisplay/MainActivity.java b/app/src/main/java/com/tenlionsoft/xzdisplay/MainActivity.java
index 54aa052..9a38f1a 100644
--- a/app/src/main/java/com/tenlionsoft/xzdisplay/MainActivity.java
+++ b/app/src/main/java/com/tenlionsoft/xzdisplay/MainActivity.java
@@ -113,13 +113,13 @@ public class MainActivity extends Activity {
intentFilter.addAction(PathConfig.ACTION_APP_INSTALL);
registerReceiver(this.mBoradCast, intentFilter);
checkAppVersion();
+// getWeather();
}
private void checkAppVersion() {
RetrofitManager.getInstance()
.create(BaseApiService.class)
- .doCheckAppVersion("http://www.xzszwhy.cn/usercenter/app/appversion/getappversionnumber/e2f64ae0" +
- "-69a5-454c-8471-483291a7bfb1")
+ .doCheckAppVersion(this.mBaseUrl + BaseUrlApi.APP_VERSION_URL)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Observer() {
@@ -149,6 +149,7 @@ public class MainActivity extends Activity {
@Override
public void onError(@NonNull Throwable e) {
+ LogUtils.e("错误");
e.printStackTrace();
ExceptionHandler.handleException(e);
}
@@ -308,6 +309,7 @@ public class MainActivity extends Activity {
public void onPageFinished(WebView webView, String str) {
super.onPageFinished(webView, str);
+ LogUtils.e(webView.getUrl() + "===" + str);
}
public boolean shouldOverrideUrlLoading(WebView webView, String str) {
@@ -350,9 +352,7 @@ public class MainActivity extends Activity {
private void startDownloadApk() {
ToastUtils.show("开始下载");
Intent intent = new Intent((Context) this, DownloadService.class);
- intent.putExtra("downloadUrl", "http://192.168.1.100:7001/usercenter/app/appversion/downloadapp/e2f64ae0-69a5" +
- "-454c-8471" +
- "-483291a7bfb1");
+ intent.putExtra("downloadUrl", this.mBaseUrl + "/app/appversion/download/e2f64ae0-69a5-454c-8471-483291a7bfb1");
startService(intent);
}
@@ -742,4 +742,40 @@ public class MainActivity extends Activity {
});
}
+ public void getWeather(){
+ RetrofitManager.getInstance()
+ .create(ApiDisplay.class)
+ .getWeather("日喀则","")
+ .subscribeOn(Schedulers.io())
+ .observeOn(AndroidSchedulers.mainThread())
+ .subscribe(new Observer