活动:月卡领取

This commit is contained in:
qiaoxin
2021-05-13 21:09:13 +08:00
parent 803ad06ed8
commit e750ba46e0
12 changed files with 288 additions and 25 deletions

View File

@@ -5,6 +5,7 @@ import { ACTIVITY_TYPE, ORDER_STATE } from '../consts';
import { dicRMB } from '../pubUtils/dictionary/DicRMB';
import { makeYuanbaoShopReward } from './yuanbaoService';
import { RoleModel } from '../db/Role';
import { makeMonthlyTicketReward } from './monthlyTicketService';
@@ -51,6 +52,13 @@ export async function makeOrder(localOrderID: string, sid: string) {
break;
}
case ACTIVITY_TYPE.MONTHLY_TICKET_1:
case ACTIVITY_TYPE.MONTHLY_TICKET_2:
{
let resule = await makeMonthlyTicketReward(roleId, roleInfo.roleName, sid, orderInfo.serverId, roleInfo.funcs, orderInfo.activityId, orderInfo.productID)
break;
}
default:
return '未知商品类型';
}