Commit 557c7cfb by 陶光胜

小程序二维码

parent 70b1f186
package com.gic.enterprise.service.outer.impl;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.enterprise.dto.AppletQrcodeDTO;
import com.gic.enterprise.dto.AppletQrcodePathDTO;
import com.gic.enterprise.entity.TabAppletQrcode;
......@@ -31,7 +32,7 @@ public class AppletQrcodeApiServiceImpl implements AppletQrcodeApiService {
tabAppletQrcode.setPath(path);
tabAppletQrcode.setParams(params);
int i = this.appletQrcodeService.saveQrcode(tabAppletQrcode);
ServiceResponse<Map<String, Object>> wxaQrcode = this.weixinWxaFunService.createWxaQrcode(appid, path, 1280);
ServiceResponse<Map<String, Object>> wxaQrcode = this.weixinWxaFunService.getWxaCodeUnlimit(appid, "pages/transfer-station/transfer-station", i+"");
if(wxaQrcode.isSuccess()){
Map<String, Object> result = wxaQrcode.getResult();
byte[] contents = (byte[]) result.get("content");
......@@ -48,6 +49,7 @@ public class AppletQrcodeApiServiceImpl implements AppletQrcodeApiService {
@Override
public ServiceResponse<AppletQrcodeDTO> getAppletQrcode(Integer id) {
return null;
TabAppletQrcode qrcode = this.appletQrcodeService.getQrcode(id);
return ServiceResponse.success(EntityUtil.changeEntityByJSON(AppletQrcodeDTO.class, qrcode));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment