微信登陆

master
cenxiaozhong 2022-05-17 16:30:38 +08:00
parent a887a497a6
commit e75eebb6d8
2 changed files with 17 additions and 3 deletions

View File

@ -91,6 +91,6 @@ kapt {
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.finogeeks.lib:finapplet:2.36.5'
implementation 'com.finogeeks.lib:finapplet:2.36.5-fix202220517v01'
implementation 'com.finogeeks.mop:plugins:2.36.5'
}

View File

@ -12,6 +12,7 @@ import com.finogeeks.lib.applet.anim.SlideFromTopToBottomAnim;
import com.finogeeks.lib.applet.client.FinAppClient;
import com.finogeeks.lib.applet.db.entity.FinApplet;
import com.finogeeks.lib.applet.interfaces.FinCallback;
import com.finogeeks.lib.applet.rest.model.WechatLoginInfo;
import com.finogeeks.mop.api.BaseApi;
import com.finogeeks.mop.interfaces.ICallback;
import com.google.gson.Gson;
@ -48,6 +49,19 @@ public class AppletManageModule extends BaseApi {
res.put("description", applet.getDescription());
res.put("version", applet.getVersion());
res.put("thumbnail", applet.getThumbnail());
Map<String, String> wechatLoginInfo = new HashMap<>(3);
// wechatLoginInfo.put("wechatOriginId", "1");
// wechatLoginInfo.put("profileUrl", "2");
// wechatLoginInfo.put("phoneUrl", "3");
WechatLoginInfo wechatLogin = applet.getWechatLoginInfo();
if (wechatLogin != null) {
wechatLoginInfo.put("wechatOriginId", wechatLogin.getWechatOriginId());
wechatLoginInfo.put("profileUrl", wechatLogin.getProfileUrl());
wechatLoginInfo.put("phoneUrl", wechatLogin.getPhoneUrl());
res.put("wechatLoginInfo",wechatLoginInfo);
}else{
res.put("wechatLoginInfo", null);
}
callback.onSuccess(res);
} else {
callback.onSuccess(null);