支付回调

This commit is contained in:
luying
2021-11-09 19:24:00 +08:00
parent 173481a60c
commit 106493b878
26 changed files with 424 additions and 135 deletions
+34
View File
@@ -0,0 +1,34 @@
import { STATUS } from '@consts';
import { Controller } from 'egg';
import { PayCallback37Data } from '../domain/sdk';
export default class SdkController extends Controller {
public async pay37Callback() {
const { ctx } = this;
const params: PayCallback37Data = ctx.request.body;
ctx.body = await ctx.service.sdk.pay37Callback(params);
return;
}
public async treatRoleName() {
const { ctx } = this;
ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, '');
return;
}
public async treatGuildName() {
const { ctx } = this;
ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, '');
return;
}
public async getGuildByUser() {
const { ctx } = this;
ctx.body = ctx.service.utils.resResult(STATUS.SUCCESS, '');
return;
}
}