Files
yinmeng-ios/xplan-ios/Global/XPHtmlUrl.m
2023-01-06 10:26:01 +08:00

62 lines
3.9 KiB
Objective-C

//
// XPHtmlUrl.m
// xplan-ios
//
// Created by 冯硕 on 2021/9/13.
//
#import "XPHtmlUrl.h"
@implementation XPHtmlUrl
NSString * const URLWithType(URLType type) {
NSString * prefix = @"yinyou";
NSDictionary * dic = @{
@(kPrivacyURL) : @"modules/rule/privacy-wap.html",//隐私政策
@(kPrivacySDKURL) : @"modules/rule/sdk.html",//隐私政策-SDK
@(kPrivacyPersonalURL) : @"modules/rule/personal-info.html",//隐私政策-个人信息
@(kPrivacyDeviceURL) : @"modules/rule/permissions.html",//隐私政策-设备权限
@(kUserProtocalURL) : @"modules/rule/protocol.html",///用户协议
@(kUserInviteFriendURL) : @"modules/game/index.html",///邀请好友
@(kFAQURL) : @"modules/rule/guide.html ",//常见问题
@(kIdentityURL) : @"modules/identity/new.html",//实人认证
@(kGameBindAccountURL) : @"modules/game/bindAccount.html",///绑定账号
@(kNurseryURL) : @"activity/cleanNet/index.html",
@(kRechargePrivacyURL) : @"modules/rule/rechargeAgreement.html",//充值协议
@(kReportRoomURL) : @"modules/inform/index.html",///举报房间
@(kShareRoomURL) : @"modules/share_room/index.html",///分享房间
@(kCandyTreeURL) : @"activity/explore/index.html",///参加糖果树
@(kCandyTreeRuleURL) : @"modules/rank/index.html#/wishingWellRule",///糖果树规则
@(kCandyTreeRecordURL) : @"modules/rank/index.html#/wishingWellRecord",///糖果树记录
@(kRoomCharmRankURL) : @"modules/charm/index.html",//房间魅力榜
@(kRoomRankURL) : @"modules/room_rank/index.html", //房间榜
@(kRoomHourRankURL) : @"modules/room_rank/hourRank.html", //房间小时榜
@(kUserLevelURL) : @"modules/level/index.html",//我的等级
@(kHomeRankURL) : @"modules/rank/index.html#/rank", // 排行榜
@(kRoomDatingRule) : @"modules/rule/dating.html",//相亲玩法
@(kNobleRuleURL) : @"modules/rule/introduction-patrician.html", // 贵族规则
@(kUserRechargeAgrURL) : @"modules/rule/rechargeAgreement.html", ///用户充值协议
@(kUserRegiServiceAgrURL): @"modules/rule/protocol.html",//用户注册服务协议
@(kLiveServiceAgrURL) : @"modules/rule/live-protocol.html", ///直播服务协议
@(kCommunitySpecURL) : @"modules/rule/community-norms.html", ///社区规范
@(kAccountlogoutAgrURL) : @"modules/rule/logout-agreement.html", ///账号注销协议
@(kAnchorFansOpenURL) : @"modules/fans_club/nameplate.html", ///主播粉丝团-铭牌申请
@(kAnchorFansListURL) : @"modules/fans_club/myfans.html", ///主播粉丝团-粉丝列表
@(kAnchorFansRankURL) : @"modules/fans_club/fans_rank.html", ///主播粉丝团-粉丝排行
@(kAnchorFansRuleURL) : @"modules/fans_club/rule.html", ///主播粉丝团-粉丝团规则
@(kNewWeekStarURL) : @"modules/weekStar/newWeekStar.html", ///周星礼物-周星榜
@(kLicenseHourRankURL) : @"modules/room_rank/hourRankLicense.html",///牌照房小时榜礼物
@(kLuckyGiftPlayRuleURL) : @"modules/rule/luckyGiftRule.html?giftID=%@",///幸运礼物玩法说明
@(kSailingActivityURL) : @"activity/act-sail/more.html", ///航海活动地址
@(kSailingPlayDescdURL) : @"activity/act-sail/play_explain.html", ///航海玩法规则
@(kSailingRecordURL) : @"activity/act-sail/win_record.html", ///航海中奖记录
@(kNetworkRenovateURL) : @"activity/activemodel/index.html?code=ZBGG",///网络整治乱象
@(kMonentsShareURL) : @"modules/world/share-page/index.html",///分享动态
@(kRedPacketRuleURL) : @"modules/rule/red-packet-rule.html",///红包规则
@(kXinZuoStarURL) : @"activity/act-constellation/index.html",///星座礼物
};
NSString * url = [dic objectForKey:@(type)];
return [NSString stringWithFormat:@"%@/%@",prefix, url];
}
@end