| @@ -134,6 +134,16 @@ public class WxAppinfoController extends BaseController { | |||||
| String name = (String) params.get("name"); | String name = (String) params.get("name"); | ||||
| String pageUrl = (String) params.get("pageUrl"); | String pageUrl = (String) params.get("pageUrl"); | ||||
| String sceneParam = (String) params.get("sceneParam"); | String sceneParam = (String) params.get("sceneParam"); | ||||
| Integer platCode = (Integer) params.get("plat"); | |||||
| if(platCode == null){ | |||||
| platCode = EnumAppPlat.WX.getCode(); | |||||
| } | |||||
| EnumAppPlat plat = EnumAppPlat.getByCode(platCode); | |||||
| if(plat == null){ | |||||
| plat = EnumAppPlat.WX; | |||||
| } | |||||
| int type = 1; | int type = 1; | ||||
| try { | try { | ||||
| type = (int) params.get("type"); | type = (int) params.get("type"); | ||||
| @@ -156,7 +166,7 @@ public class WxAppinfoController extends BaseController { | |||||
| qrCodeService.exportQrcode(request, response, | qrCodeService.exportQrcode(request, response, | ||||
| getTenantInfo(), type, pageUrl, sceneParam, | getTenantInfo(), type, pageUrl, sceneParam, | ||||
| withText, text1, text2, | withText, text1, text2, | ||||
| name,EnumAppPlat.WX); | |||||
| name,plat); | |||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error(e.getMessage()); | logger.error(e.getMessage()); | ||||
| throw new MallinkException(Result.ERROR, "下载异常"); | throw new MallinkException(Result.ERROR, "下载异常"); | ||||