|
@@ -42,7 +42,7 @@ module.exports = app => {
|
|
|
const qr_png = await qr.image(text || '', { type: 'png', size: size || 5, margin: margin || 1 });
|
|
|
const qrcodePath = 'app/public/upload/' + this.ctx.tender.id + '/stage/shoufang/qrcode/' + result.insertId + '.png';
|
|
|
// await this.ctx.helper.saveStreamFile(qr_png, path.resolve(this.app.baseDir, 'app/' + qrcodePath));
|
|
|
- await this.ctx.app.fujianOss.put(ctx.app.config.fujianOssFolder + qrcodePath, qr_png);
|
|
|
+ await this.ctx.app.fujianOss.put(this.ctx.app.config.fujianOssFolder + qrcodePath, qr_png);
|
|
|
await transaction.update(this.tableName, { id: result.insertId, qrcode: qrcodePath });
|
|
|
await transaction.commit();
|
|
|
return result;
|