✨ feat(活动): 绑定手机
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user