BigApp_Discuz_Android-master开发笔记
感谢运营-Rainar 远程解决
如果集成了AppUpdater修改了version.php中的versionCode客户端仍然没有升级提示
检查:
1 | libs/AppUpdater/src/com/loveplusplus/update/constants.java |
中的json数据是否和version.php中的字段对应
例如:
1 2 3 | public static final String APK_DOWNLOAD_URL = "apkUrl"; public static final String APK_UPDATE_CONTENT = "changeLog"; public static final String APK_VERSION_CODE = "versionCode"; |
1 2 3 4 5 6 7 | //version.php 相对应的字段: public static final String APK_DOWNLOAD_URL = "apkUrl"; //APP下载链接对应version.php中的"apkUrl":"http:xxx.apk" public static final String APK_UPDATE_CONTENT = "changeLog"; //升级日志提示内容对应version.php中的changeLog":"xxxxxxxx." public static final String APK_VERSION_CODE = "versionCode"; //版本号对应version.php中的"versionCode":"99" //如version.php中返回的数据为: {"versionCode":"99","Url":"http:\/\/www.xxx.com\/app\/xxx.apk","Log":"xxxxxxxx."} |
则需要更改constants.java中的json数据为:
1 2 3 4 5 6 7 | public static final String APK_DOWNLOAD_URL = "Url"; //APP升级链接字段对应version.php字段中的APP下载链接字段 public static final String APK_UPDATE_CONTENT = "Log"; //升级日志对应version.php字段中的日志字段 public static final String APK_VERSION_CODE = "versionCode"; //版本号对应version.php中的versionCode字段 //以此类推 |