🐞 fix(37需求): 37回调接口校验修复
This commit is contained in:
@@ -334,5 +334,5 @@ export async function sendGiftCodeMail(message: string) {
|
||||
return false;
|
||||
}
|
||||
|
||||
await sendMailByContent(MAIL_TYPE.SEND_MAIL, roleId, { goods: giftCode.goods, params: [''] });
|
||||
await sendMailByContent(MAIL_TYPE.SEND_MAIL, roleId, { goods: giftCode.goods, params: ['礼包'] });
|
||||
}
|
||||
@@ -467,6 +467,7 @@ export default class Sdk extends Service {
|
||||
|
||||
let role = await RoleModel.findByUid(user.uid, params.server_id);
|
||||
if(!role) return resResult(SDK_37_ACTIVITY_CODE.ROLE_NOT_FOUND);
|
||||
if(params.role_id && role.roleId != params.role_id) return resResult(SDK_37_ACTIVITY_CODE.ROLE_NOT_FOUND);
|
||||
|
||||
let checkHasUse = await GiftCodeDetailModel.checkOrderHasUsed(giftCodeDetail.giftId, params.order_id);
|
||||
if(checkHasUse) {
|
||||
|
||||
Reference in New Issue
Block a user