HJ_Server/src/api_s2c/gmapi/ApiPost.ts
2023-12-13 20:51:17 +08:00

11 lines
465 B
TypeScript

import { ApiCall } from "tsrpc";
import { ReqPost, ResPost } from "../../shared/protocols/gmapi/PtlPost";
import axios from 'axios';
import util from 'util';
export default async function (call: ApiCall<ReqPost, ResPost>) {
let baseUrl = util.format('https://%s', G.config.baseUrl)
let params = {g:'', m:'data', a: "out_notice",game: 'heijiao', owner: ''}
let res = await axios.get(baseUrl + '/gm/index.php', {params})
call.succ({data: res.data})
}