2021-09-13 14:22:51 +08:00
|
|
|
//
|
|
|
|
// 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-10 19:19:02 +08:00
|
|
|
@(kPrivacyURL) : @"modules/rule/privacy-wap.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",///糖果树记录
|
2021-12-23 14:44:08 +08:00
|
|
|
@(kRoomCharmRankUrl) : @"modules/charm/index.html",//房间魅力榜
|
2021-09-13 14:22:51 +08:00
|
|
|
};
|
|
|
|
NSString * url = [dic objectForKey:@(type)];
|
|
|
|
|
|
|
|
return [NSString stringWithFormat:@"%@/%@",prefix, url];
|
|
|
|
}
|
|
|
|
@end
|