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

32 lines
1.0 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",
2021-09-16 17:21:52 +08:00
@(kUserProtocalURL) : @"modules/rule/protocol.html",
2021-09-17 19:41:09 +08:00
@(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",
2021-09-26 20:42:33 +08:00
@(kRechargePrivacyURL) : @"modules/rule/rechargeAgreement.html",//
@(kReportRoomURL) : @"modules/inform/index.html",///
2021-11-23 19:27:18 +08:00
@(kShareRoomURL) : @"modules/share_room/index.html",///
2021-12-09 20:58:54 +08:00
@(kCandyTreeURL) : @"activity/explore/index.html",///
};
NSString * url = [dic objectForKey:@(type)];
return [NSString stringWithFormat:@"%@/%@",prefix, url];
}
@end