Commit 7c774074 by 徐高华

企微托管

parent 6618e1e8
...@@ -55,15 +55,12 @@ public class QywxOpenController { ...@@ -55,15 +55,12 @@ public class QywxOpenController {
qdto.setStaffId(staffId); qdto.setStaffId(staffId);
qdto.setWxEnterpriseId(wxEnterpriseId); qdto.setWxEnterpriseId(wxEnterpriseId);
qdto.setEnterpriseId(enterpriseId); qdto.setEnterpriseId(enterpriseId);
ServiceResponse<Long> codeResp = this.openStaffApiService.init(qdto) ; ServiceResponse<OpenStaffDTO> codeResp = this.openStaffApiService.init(qdto) ;
if(null == codeResp.getResult()) { if(null == codeResp.getResult()) {
return RestResponse.failure("9999",codeResp.getMessage()); return RestResponse.failure("9999",codeResp.getMessage());
} }
ServiceResponse<OpenStaffDTO> staffResp =this.openStaffApiService.getById(codeResp.getResult()) ; vo.setQrcode(codeResp.getResult().getQrCode1());
if(null == staffResp.getResult()) { vo.setQrcodeData(codeResp.getResult().getQrcodeData());
return RestResponse.failure("9999",staffResp.getMessage());
}
vo.setQrcode(staffResp.getResult().getQrCode1());
} }
} }
WxEnterpriseDTO en = this.wxEnterpriseApiService.getOne(wxEnterpriseId) ; WxEnterpriseDTO en = this.wxEnterpriseApiService.getOne(wxEnterpriseId) ;
......
...@@ -27,6 +27,19 @@ public class OpenStaffVO implements Serializable { ...@@ -27,6 +27,19 @@ public class OpenStaffVO implements Serializable {
*/ */
private String qrcode ; private String qrcode ;
/**
* base64
*/
private String qrcodeData ;
public String getQrcodeData() {
return qrcodeData;
}
public void setQrcodeData(String qrcodeData) {
this.qrcodeData = qrcodeData;
}
public String getStaffName() { public String getStaffName() {
return staffName; return staffName;
} }
......
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