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 = @{
|
|
|
|
@(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",///绑定账号
|
2021-09-22 18:30:15 +08:00
|
|
|
@(kNurseryURL):@"activity/cleanNet/index.html",
|
2021-09-26 20:42:33 +08:00
|
|
|
@(kRechargePrivacyURL) : @"modules/rule/rechargeAgreement.html",//充值协议
|
2021-10-20 19:06:44 +08:00
|
|
|
@(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",///参加糖果树
|
2021-09-13 14:22:51 +08:00
|
|
|
};
|
|
|
|
NSString * url = [dic objectForKey:@(type)];
|
|
|
|
|
|
|
|
return [NSString stringWithFormat:@"%@/%@",prefix, url];
|
|
|
|
}
|
|
|
|
@end
|