mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
feat: 套餐购买支持易支付、支付宝支付
This commit is contained in:
@@ -39,4 +39,12 @@ export abstract class BaseController {
|
||||
}
|
||||
return userId;
|
||||
}
|
||||
|
||||
getLoginUser() {
|
||||
const user = this.ctx.user;
|
||||
if (user == null) {
|
||||
throw new Error('Token已过期');
|
||||
}
|
||||
return user;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,6 +148,7 @@ export abstract class BaseService<T> {
|
||||
page.limit = 20;
|
||||
}
|
||||
const qb = this.buildListQuery(pageReq);
|
||||
|
||||
qb.offset(page.offset).limit(page.limit);
|
||||
const list = await qb.getMany();
|
||||
const total = await qb.getCount();
|
||||
|
||||
Reference in New Issue
Block a user