Files
yinmeng-ios/xplan-ios/Global/XPHtmlUrl.m

63 lines
3.9 KiB
Mathematica
Raw Normal View History

//
// 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 = @{
2021-12-28 01:03:57 +08:00
@(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",///
2022-01-14 11:38:09 +08:00
@(kRoomCharmRankURL) : @"modules/charm/index.html",//
@(kRoomRankURL) : @"modules/room_rank/index.html", //
@(kRoomHourRankURL) : @"modules/room_rank/hourRank.html", //
2021-12-23 17:14:36 +08:00
@(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", ///
2022-04-07 15:02:22 +08:00
@(kAnchorFansOpenURL) : @"modules/fans_club/nameplate.html", ///-
@(kAnchorFansListURL) : @"modules/fans_club/myfans.html", ///-
@(kAnchorFansRankURL) : @"modules/fans_club/fans_rank.html", ///-
2022-05-07 17:58:15 +08:00
@(kAnchorFansRuleURL) : @"modules/fans_club/rule.html", ///-
2022-06-13 19:07:07 +08:00
@(kNewWeekStarURL) : @"modules/weekStar/newWeekStar.html", ///-
@(kLicenseHourRankURL) : @"modules/room_rank/hourRankLicense.html",///
2022-06-14 19:21:25 +08:00
@(kLuckyGiftPlayRuleURL) : @"modules/rule/luckyGiftRule.html?giftID=%@",///
2022-08-18 19:58:32 +08:00
@(kSailingActivityURL) : @"activity/act-sail/more.html", ///
@(kSailingPlayDescdURL) : @"activity/act-sail/play_explain.html", ///
@(kSailingRecordURL) : @"activity/act-sail/win_record.html", ///
2022-06-27 20:04:54 +08:00
@(kNetworkRenovateURL) : @"activity/activemodel/index.html?code=ZBGG",///
@(kMonentsShareURL) : @"modules/world/share-page/index.html",///
2022-12-07 15:05:14 +08:00
@(kRedPacketRuleURL) : @"modules/rule/red-packet-rule.html",///\
@(kXinZuoStarURL) : @"activity/act-constellation/index.html",///
};
NSString * url = [dic objectForKey:@(type)];
return [NSString stringWithFormat:@"%@/%@",prefix, url];
}
@end