兼容客户端不同参数名
This commit is contained in:
@@ -34,13 +34,14 @@ export default class GameController extends Controller {
|
|||||||
|
|
||||||
public async checkReview() {
|
public async checkReview() {
|
||||||
const { ctx } = this;
|
const { ctx } = this;
|
||||||
const { version, platformAppid } = ctx.request.body;
|
const { version, platformAppid, platformAppId } = ctx.request.body;
|
||||||
|
|
||||||
let curRegion = await RegionModel.findRegionByEnv(this.app.config.realEnv);
|
let curRegion = await RegionModel.findRegionByEnv(this.app.config.realEnv);
|
||||||
if(!curRegion) return resResult(STATUS.VERSION_ERR);
|
if(!curRegion) return resResult(STATUS.VERSION_ERR);
|
||||||
|
|
||||||
let hasPolicy = false, userPolicyLink = '', privacyPolicyLink = ''; // 是否需要替换协议,有就是用下面两个字段替换
|
let hasPolicy = false, userPolicyLink = '', privacyPolicyLink = ''; // 是否需要替换协议,有就是用下面两个字段替换
|
||||||
let channelInfo = await ChannelInfoModel.findByPlatform(platformAppid);
|
let platform = platformAppid ?? platformAppId;
|
||||||
|
let channelInfo = await ChannelInfoModel.findByPlatform(platform);
|
||||||
if(channelInfo && !channelInfo.isDefaultPolicy) {
|
if(channelInfo && !channelInfo.isDefaultPolicy) {
|
||||||
hasPolicy = true;
|
hasPolicy = true;
|
||||||
userPolicyLink = channelInfo.userPolicyLink;
|
userPolicyLink = channelInfo.userPolicyLink;
|
||||||
|
|||||||
Reference in New Issue
Block a user