feat(活动): 绑定手机

This commit is contained in:
luying
2022-12-07 15:02:11 +08:00
parent f44c5d592a
commit bdbac4b085
11 changed files with 250 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ import { getGuideGachaData } from './gachaService';
import { getPopNoticeData } from './popNoticeService';
import { _getActivities, _getActivitiesByServerId, _getActivitiesByType, _getActivityById } from './activityRemoteService';
import { getGroupShopDataShow } from './groupShopService';
import { getBindPhoneDataShow } from './bindPhoneService';
/**
* 获取活动数据
@@ -49,7 +50,7 @@ import { getGroupShopDataShow } from './groupShopService';
* @param {string} roleId 角色Id
*
*/
export async function getActivity(serverId: number, roleId: string, guildCode: string, activityId: number, activityType: number) {
export async function getActivity(serverId: number, roleId: string, uid: number, guildCode: string, activityId: number, activityType: number) {
try {
let activityData = null;
switch (activityType) {
@@ -226,6 +227,11 @@ export async function getActivity(serverId: number, roleId: string, guildCode: s
activityData = await getGroupShopDataShow(activityId, roleId);
break
}
case ACTIVITY_TYPE.BIND_PHONE:
{
activityData = await getBindPhoneDataShow(activityId, roleId, serverId, uid);
break
}
default: {
console.log('未知活动类型.........', activityType)
break;