|
@@ -48,6 +48,7 @@ import com.wdkl.callingmainnurse.util.SipUtil.SipCallBackI;
|
|
|
import com.wdkl.callingmainnurse.util.SipUtil.SipHelperUtil;
|
|
|
import com.wdkl.callingmainnurse.util.StringUtils;
|
|
|
import com.wdkl.callingmainnurse.util.TimeUtil;
|
|
|
+import com.wdkl.callingmainnurse.util.ToastUtil;
|
|
|
import com.wdkl.callingmainnurse.util.UIUtils;
|
|
|
import com.wdkl.callingmainnurse.util.VoiceMessageRoomWardInformationUtil;
|
|
|
import com.wdkl.callingmainnurse.util.ethernetwifiwithsipconnectstatus.WifiHotBindSipStatusConnectorUtil;
|
|
@@ -393,7 +394,7 @@ public class MainFragmentActivity extends FragmentActivity implements IVvsipServ
|
|
|
/**
|
|
|
* 检查APP更新版本
|
|
|
*/
|
|
|
- private void appCheckUpdate() {
|
|
|
+ public void appCheckUpdate() {
|
|
|
if (!StringUtils.notEmpty(Constants.URL)) return;
|
|
|
if (!StringUtils.notEmpty(Constants.PartID)) return;
|
|
|
try {
|
|
@@ -405,6 +406,7 @@ public class MainFragmentActivity extends FragmentActivity implements IVvsipServ
|
|
|
public void onError(Call call, Exception e, int id) {
|
|
|
LogUtil.d("appCheckUpdate", "2===onError");
|
|
|
Constants.UPDATE_APP_FLAG = false;
|
|
|
+ ToastUtil.showToast("检查APP版本失败,请检查网络或服务器配置");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -428,10 +430,17 @@ public class MainFragmentActivity extends FragmentActivity implements IVvsipServ
|
|
|
Intent intent = new Intent(MainFragmentActivity.this, APPUpdateActivity.class);
|
|
|
intent.putExtra("downLoadURL", Constants.URL + Constants.URL_END + "/" + downloadURL);
|
|
|
startActivity(intent);
|
|
|
+ } else {
|
|
|
+ ToastUtil.showToast("APP下载地址为空,请检查服务器配置");
|
|
|
}
|
|
|
+ } else {
|
|
|
+ ToastUtil.showToast("已是最新版本! 当前版本: " + APPVersion_Now + ", 服务器版本: " + APPVersion);
|
|
|
}
|
|
|
+ } else {
|
|
|
+ ToastUtil.showToast("获取APP版本失败,请检查服务器是否上传新版本");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
+ ToastUtil.showToast("检查APP版本失败,请检查网络或服务器配置");
|
|
|
LogUtil.d("appCheckUpdate", "7===Exception==");
|
|
|
Constants.UPDATE_APP_FLAG = false;
|
|
|
e.printStackTrace();
|