为了应付web-server的tsc的修改

This commit is contained in:
luying
2021-12-07 11:16:37 +08:00
parent 6d85b41c40
commit a754f255ff
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ export default class Sdk extends Service {
public async pay37Callback(params: PayCallback37Data) {
const { ctx } = this;
const { app } = ctx;
let ip = ctx.header['x-real-ip'];
let ip = typeof ctx.header['x-real-ip'] == 'string'? ctx.header['x-real-ip']: ctx.header['x-real-ip'][0];
console.log('*****pay37Callback', ip)
let checkResult = this.check37Sign(params);