保存优惠券时, 不再在服务端生成优惠券的截图
This commit is contained in:
parent
955b6d46b5
commit
30e203a388
@ -57,9 +57,9 @@ class CouponController extends BaseController {
|
||||
record.updateFromReq(req.params)
|
||||
}
|
||||
await record.save()
|
||||
setImmediate(async function () {
|
||||
await generateCouponImg(record.shop, record.id, record.content)
|
||||
})
|
||||
// setImmediate(async function () {
|
||||
// await generateCouponImg(record.shop, record.id, record.content)
|
||||
// })
|
||||
return record.toJson()
|
||||
}
|
||||
@permission('coupon:delete')
|
||||
|
Loading…
x
Reference in New Issue
Block a user