feat:currentApplet新增appletType和paymentUrl;

master
yangbingqiao 2022-10-07 23:21:50 +08:00
parent 9473a50e65
commit de789b398c
1 changed files with 2 additions and 0 deletions

View File

@ -51,12 +51,14 @@ public class AppletManageModule extends BaseApi {
res.put("description", applet.getDescription()); res.put("description", applet.getDescription());
res.put("version", applet.getVersion()); res.put("version", applet.getVersion());
res.put("thumbnail", applet.getThumbnail()); res.put("thumbnail", applet.getThumbnail());
res.put("appletType", applet.getAppletType());
Map<String, String> wechatLoginInfo = new HashMap<>(3); Map<String, String> wechatLoginInfo = new HashMap<>(3);
WechatLoginInfo wechatLogin = applet.getWechatLoginInfo(); WechatLoginInfo wechatLogin = applet.getWechatLoginInfo();
if (wechatLogin != null) { if (wechatLogin != null) {
wechatLoginInfo.put("wechatOriginId", wechatLogin.getWechatOriginId()); wechatLoginInfo.put("wechatOriginId", wechatLogin.getWechatOriginId());
wechatLoginInfo.put("profileUrl", wechatLogin.getProfileUrl()); wechatLoginInfo.put("profileUrl", wechatLogin.getProfileUrl());
wechatLoginInfo.put("phoneUrl", wechatLogin.getPhoneUrl()); wechatLoginInfo.put("phoneUrl", wechatLogin.getPhoneUrl());
wechatLoginInfo.put("paymentUrl", wechatLogin.getPaymentUrl());
res.put("wechatLoginInfo",wechatLoginInfo); res.put("wechatLoginInfo",wechatLoginInfo);
}else{ }else{
res.put("wechatLoginInfo", null); res.put("wechatLoginInfo", null);