From 3f7bcb1fb68b78a2cd2a87b44098f1de70378d92 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 30 十二月 2019 18:59:59 +0800 Subject: [PATCH] 完成微信小程序登录流程 --- fanli/src/main/java/com/yeshi/fanli/service/impl/config/AppVersionServiceImpl.java | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/config/AppVersionServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/config/AppVersionServiceImpl.java index ca55b23..4fe1945 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/config/AppVersionServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/config/AppVersionServiceImpl.java @@ -112,8 +112,18 @@ @Override public List<AppVersionInfo> listByVersion(String version) { - - + + return null; + } + + @Override + public AppVersionInfo getClientVersion(String platform, int versionCode) { + AppVersionInfo appInfo = getAppVersionInfoListByPlatformAndVersion(platform, versionCode); + if (appInfo != null) + return appInfo; + // 濡傛灉涓嶅瓨鍦ㄥ氨闄嶄綆鐗堟湰鍙锋煡璇� + if (versionCode > 0) + return getClientVersion(platform, versionCode - 1); return null; } -- Gitblit v1.8.0