Commit 9a26611c by 陶光胜

二维码

parent 899da5fd
......@@ -240,6 +240,19 @@ public class QrcodeController {
return RestResponse.success(pic);
}
@RequestMapping("take-store-qrcode")
public RestResponse takeStoreQrcode(String appkey, Integer id, Integer qrcodeType){
String path = "pages/index/index?qrcodeParam="+id+"&qrcodeType="+qrcodeType;
byte[] appletQrcode = this.createAppletQrcode(appkey, path);
UploadResult uploadResult = QQCloudPicUtils.uploadLocalPicStream("pic01", "", appletQrcode);
Map<String, Object> pic = new HashMap<>();
pic.put("fileId", uploadResult.getFileId());
pic.put("url", uploadResult.getUrl());
pic.put("downloadUrl", uploadResult.getDownloadUrl());
pic.put("path", path);
return RestResponse.success(pic);
}
private void createQrcode(QrcodeQO qrcodeQO, Integer enterpriseId, final String filePath, String fileId,
Integer downLoadId, UserDetail userDetail, String fileName) throws Exception{
new Thread(new Runnable() {
......
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