添加 eggjs web-server,初步支持多宝短信
This commit is contained in:
9
web-server/app/controller/account.ts
Normal file
9
web-server/app/controller/account.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Controller } from 'egg';
|
||||
|
||||
export default class AccountController extends Controller {
|
||||
public async getSms() {
|
||||
const { ctx } = this;
|
||||
console.log(ctx.request.body);
|
||||
ctx.body = await ctx.service.turboCore.getSms(ctx.request.body.telNo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user