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

35 lines
1.4 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 = @{
@(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",//
};
NSString * url = [dic objectForKey:@(type)];
return [NSString stringWithFormat:@"%@/%@",prefix, url];
}
@end