Commit ecbfc465 by pierce

修改域名

parent 412a90e8
...@@ -13,10 +13,10 @@ import GDToolBox ...@@ -13,10 +13,10 @@ import GDToolBox
public struct GDLoginWebPublicUrl { public struct GDLoginWebPublicUrl {
/// 隐私政策 /// 隐私政策
public static let userPrivacyAggrement = "https://yabolive.com/other/text/guodongTips.html" public static let userPrivacyAggrement = "https://xiuse.ishuaji.cn/other/text/xsTips.html"
// 用户使用协议 // 用户使用协议
public static let userAgreement = "http://zhibo.yazhai.co/agreement/comm.html" public static let userAgreement = "https://xiuse.ishuaji.cn/other/text/comm.html"
} }
public struct GDLoginAndRegistPublicUDKey { public struct GDLoginAndRegistPublicUDKey {
......
...@@ -104,7 +104,8 @@ public final class GDPersonalAuthModel: BaseModel, NetworkArrType { ...@@ -104,7 +104,8 @@ public final class GDPersonalAuthModel: BaseModel, NetworkArrType {
public static func createArrFrom(_ json: JSON) -> [GDPersonalAuthModel] { public static func createArrFrom(_ json: JSON) -> [GDPersonalAuthModel] {
return json["result"].arrayValue return json["result"].arrayValue
.map { GDPersonalAuthModel.createFrom($0) } .map { GDPersonalAuthModel.createFrom($0) }
.filter { $0.key != .unknown } .filter { $0.key != .unknown && $0.key != .wechat }
//TODO:添加微信认证: added By Pidan
} }
public static func createFrom(_ json: JSON) -> GDPersonalAuthModel { public static func createFrom(_ json: JSON) -> GDPersonalAuthModel {
......
...@@ -67,7 +67,7 @@ public class GDImageBrowserController: BaseViewController { ...@@ -67,7 +67,7 @@ public class GDImageBrowserController: BaseViewController {
} }
/// 展示图片的 CollectionView /// 展示图片的 CollectionView
let collectionView = UICollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout()) let collectionView = UICollectionView(frame: .init(x: 0, y: 0, width: GDScreen.width, height: GDScreen.height), collectionViewLayout: UICollectionViewFlowLayout())
/// 顶部 View /// 顶部 View
let topView = UIView(frame: .zero) let topView = UIView(frame: .zero)
/// 返回按钮 /// 返回按钮
......
...@@ -66,7 +66,7 @@ public struct GDAppConfig { ...@@ -66,7 +66,7 @@ public struct GDAppConfig {
/// 货币名 /// 货币名
public static let gd_goldName = "钻石" public static let gd_goldName = "钻石"
/// 小券名 /// 小券名
public static let gd_coinName = "券" public static let gd_coinName = "券"
/// 魅力值名 /// 魅力值名
public static let gd_charmName = "魅力" public static let gd_charmName = "魅力"
/// 富豪值名 /// 富豪值名
......
...@@ -67,6 +67,11 @@ public extension UIImageView ...@@ -67,6 +67,11 @@ public extension UIImageView
completion?(.success(WebImageSuccess(image: self.image, cacheType: .disk, ImageUrl: URL(string: "")))) completion?(.success(WebImageSuccess(image: self.image, cacheType: .disk, ImageUrl: URL(string: ""))))
return return
} }
if url.contains("/res/d37cbd95-c4d7-4fd4-ab14-d07580a0cba4.png") {
self.image = UIImage.appIcon
completion?(.success(WebImageSuccess(image: self.image, cacheType: .disk, ImageUrl: URL(string: ""))))
return
}
// 构建进度闭包 // 构建进度闭包
var kfProgress : DownloadProgressBlock? var kfProgress : DownloadProgressBlock?
......
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.2; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
...@@ -477,7 +477,7 @@ ...@@ -477,7 +477,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.2; IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
...@@ -524,7 +524,7 @@ ...@@ -524,7 +524,7 @@
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_INCLUDE_PATHS = "\"$(SRCROOT)/GDBaseBussiness/Module\""; SWIFT_INCLUDE_PATHS = "\"$(SRCROOT)/GDBaseBussiness/Module\"/**";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
}; };
...@@ -559,14 +559,16 @@ ...@@ -559,14 +559,16 @@
PRODUCT_BUNDLE_IDENTIFIER = com.qs.live.ios.GDBaseBussiness; PRODUCT_BUNDLE_IDENTIFIER = com.qs.live.ios.GDBaseBussiness;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES; SKIP_INSTALL = YES;
STRIP_STYLE = all;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO; SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_INCLUDE_PATHS = "\"$(SRCROOT)/GDBaseBussiness/Module\""; SWIFT_INCLUDE_PATHS = "\"$(SRCROOT)/GDBaseBussiness/Module\"/**";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = NO;
}; };
name = Release; name = Release;
}; };
......
...@@ -24,7 +24,7 @@ extension GDBaseBussinessAPI: TargetType { ...@@ -24,7 +24,7 @@ extension GDBaseBussinessAPI: TargetType {
var baseURL: URL { var baseURL: URL {
switch self { switch self {
case .verifyVersionCode: case .verifyVersionCode:
return URL(string: "http://openapi.lvdou66.com")! return URL(string: "http://openapi.cxylive.top")!
default: default:
return URL(string: GDRouter.HostRouter?.apiAddress ?? "") ?? URL(fileURLWithPath: "") return URL(string: GDRouter.HostRouter?.apiAddress ?? "") ?? URL(fileURLWithPath: "")
} }
......
...@@ -43,7 +43,7 @@ class GDInternalPushCenter: BaseViewModel { ...@@ -43,7 +43,7 @@ class GDInternalPushCenter: BaseViewModel {
// GDWebView.cleanCache() // GDWebView.cleanCache()
// //
// let model = GDInternalPushMessageModel() // let model = GDInternalPushMessageModel()
// model.content = "http://test.ybact.ishuaji.cn/eggplant/notice/index.html" // model.content = "http://test.ybact.ygfhkj.cn/xs/notice/index.html"
// model.showTime = 300000 // model.showTime = 300000
// model.extraMap = "{\"msg\":\"喔喔喔喔喔喔:开播了,我就像可乐一样,把你甜的冒泡\"}" // model.extraMap = "{\"msg\":\"喔喔喔喔喔喔:开播了,我就像可乐一样,把你甜的冒泡\"}"
// self.pushMessage(message: model) // self.pushMessage(message: model)
......
...@@ -42,12 +42,13 @@ class GDServiceController: BaseViewController { ...@@ -42,12 +42,13 @@ class GDServiceController: BaseViewController {
super.makeUI() super.makeUI()
self.title = "我的客服" self.title = "我的客服"
_ = self.setupNavigationButton(on: .right, title: "帮助", image: nil) {[weak self] in
guard let self = self else { return } // _ = self.setupNavigationButton(on: .right, title: "帮助", image: nil) {[weak self] in
let helpVC = GDWebViewController(url: GDPersonalPublicWebURL.help) // guard let self = self else { return }
helpVC.showShare = true // let helpVC = GDWebViewController(url: GDPersonalPublicWebURL.help)
self.navigationController?.pushViewController(helpVC, animated: true) // helpVC.showShare = true
} // self.navigationController?.pushViewController(helpVC, animated: true)
// }
makeChatTableView() makeChatTableView()
......
...@@ -223,7 +223,7 @@ class GDFriendsCenter: BaseViewModel { ...@@ -223,7 +223,7 @@ class GDFriendsCenter: BaseViewModel {
FTIndicator.showProgress(withMessage: nil) FTIndicator.showProgress(withMessage: nil)
GDFriendHttpHelper.shared.checkFriendApply(for: fid).subscribe { model in GDFriendHttpHelper.shared.checkFriendApply(for: fid).subscribe { model in
FTIndicator.dismissProgress() FTIndicator.dismissProgress()
if model.isreachbonds { if model.isreachbonds || GDRouter.BaseBusinessRouter?.isCurrentVersionVerified.value == false {
// 达到要求,不需要送礼 // 达到要求,不需要送礼
let applyVC = GDFriendApplyViewController(with: fid, gid: nil) let applyVC = GDFriendApplyViewController(with: fid, gid: nil)
vc.navigationController?.pushViewController(applyVC, animated: true) vc.navigationController?.pushViewController(applyVC, animated: true)
......
...@@ -11,11 +11,11 @@ import GDToolBox ...@@ -11,11 +11,11 @@ import GDToolBox
struct GDPaymentWebURL { struct GDPaymentWebURL {
/// 充值记录 /// 充值记录
static var rechargeRecord: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/eggplant/expenses/recharge.html") } static var rechargeRecord: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/xs/expenses/recharge.html") }
/// 消费记录 /// 消费记录
static var consumeRecord: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/eggplant/expenses/trade.html") } static var consumeRecord: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/xs/expenses/trade.html") }
/// 充值认证页面 /// 充值认证页面
static var rechargeRealNameAuth: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/eggplant/verification/index.html") } static var rechargeRealNameAuth: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/xs/verification/index.html") }
} }
...@@ -91,26 +91,26 @@ class GDMyPageFollowerController: BaseViewController { ...@@ -91,26 +91,26 @@ class GDMyPageFollowerController: BaseViewController {
makeTableView() makeTableView()
makeEmptyView() makeEmptyView()
//TODO:Live: added By Pidan
if viewModel.isMyFollow.value == true { // if viewModel.isMyFollow.value == true {
_ = self.setupNavigationButton(on: .right, title: nil, image: GDPersonalBundle.imageNamed("zone_right_more_black_icon")) {[weak self] in // _ = self.setupNavigationButton(on: .right, title: nil, image: GDPersonalBundle.imageNamed("zone_right_more_black_icon")) {[weak self] in
//
_ = GDAlertView.showActionSheet(viewController: self, title: nil, message: nil, sheetTitles: ["全选", "取消全选"], cancleTitle: "取消") {/*[weak self]*/ index in // _ = GDAlertView.showActionSheet(viewController: self, title: nil, message: nil, sheetTitles: ["全选", "取消全选"], cancleTitle: "取消") {/*[weak self]*/ index in
//
//TODO:Live: added By Pidan // //TODO:Live: added By Pidan
// if index == 0 { //// if index == 0 {
// self?.viewModel.setupAnchorLivePushNotification(open: true) //// self?.viewModel.setupAnchorLivePushNotification(open: true)
// } else if index == 1 { //// } else if index == 1 {
// self?.viewModel.setupAnchorLivePushNotification(open: false) //// self?.viewModel.setupAnchorLivePushNotification(open: false)
// } //// }
//
} cancleAction: { // } cancleAction: {
//
} // }
//
//
} // }
} // }
} }
......
...@@ -11,13 +11,13 @@ import GDToolBox ...@@ -11,13 +11,13 @@ import GDToolBox
struct GDPersonalWebURL { struct GDPersonalWebURL {
// 我的收益页面 // 我的收益页面
static var webMyIncomeUrl: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/eggplant/couponDetails/index2.html") } static var webMyIncomeUrl: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/xs/couponDetails/index2.html") }
// 绑定手机号码 // 绑定手机号码
static var bindPhone: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/eggplant/replacePhone/bindPhone.html") } static var bindPhone: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/xs/replacePhone/bindPhone.html") }
/// 更换手机号码 /// 更换手机号码
static var changePhone: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/eggplant/replacePhone/index.html") } static var changePhone: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/xs/replacePhone/index.html") }
// 注销账号页面 // 注销账号页面
static var accountCancel: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/sudoke/Logout.html") } static var accountCancel: String { GDToolBoxPlugins.shared.apiPlugin.WEBH5("/sudoke/Logout.html") }
......
...@@ -71,7 +71,7 @@ class GDEnvViewModel: BaseViewModel, ViewModelType { ...@@ -71,7 +71,7 @@ class GDEnvViewModel: BaseViewModel, ViewModelType {
GDRouter.ChatRoom?.changeSDKKey(appKey: GDSDK.gd_hyphenateKey) GDRouter.ChatRoom?.changeSDKKey(appKey: GDSDK.gd_hyphenateKey)
case .test: case .test:
UserDefaults.standard.setValue("http://test.api.lvdou66.com", forKey: GDHostManagerStore.Custom.apiAddress) UserDefaults.standard.setValue("http://test.api.cxylive.top", forKey: GDHostManagerStore.Custom.apiAddress)
GDRouter.HostRouter?.checkCurrentDNSAdress() GDRouter.HostRouter?.checkCurrentDNSAdress()
...@@ -80,7 +80,7 @@ class GDEnvViewModel: BaseViewModel, ViewModelType { ...@@ -80,7 +80,7 @@ class GDEnvViewModel: BaseViewModel, ViewModelType {
GDRouter.ChatRoom?.changeSDKKey(appKey: GDSDK.gd_hyphenateTestKey) GDRouter.ChatRoom?.changeSDKKey(appKey: GDSDK.gd_hyphenateTestKey)
case .preproduct: case .preproduct:
UserDefaults.standard.setValue("https://zhibo.lvdou66.com/87server", forKey: GDHostManagerStore.Custom.apiAddress) UserDefaults.standard.setValue("https://zhibo.cxylive.top/87server", forKey: GDHostManagerStore.Custom.apiAddress)
GDRouter.HostRouter?.checkCurrentDNSAdress() GDRouter.HostRouter?.checkCurrentDNSAdress()
......
...@@ -62,7 +62,8 @@ class GDZoneInfoAuthCell: UITableViewCell { ...@@ -62,7 +62,8 @@ class GDZoneInfoAuthCell: UITableViewCell {
/// 隔线 /// 隔线
private let lineView = UIView(frame: .zero) private let lineView = UIView(frame: .zero)
/// 认证状态 /// 认证状态
private var authState = BehaviorRelay<[GDPersonalAuthType: Bool]>(value: [.idCard: false, .phone: false, .wechat: false]) //TODO:添加微信认证: added By Pidan
private var authState = BehaviorRelay<[GDPersonalAuthType: Bool]>(value: [.idCard: false, .phone: false])
private func makeTitleLabel() { private func makeTitleLabel() {
titleLabel.font = .gd_default(14) titleLabel.font = .gd_default(14)
......
...@@ -48,14 +48,14 @@ public class GDHostManager { ...@@ -48,14 +48,14 @@ public class GDHostManager {
// 是否允许自定义Api // 是否允许自定义Api
if DevConfig.enableEditableAPI { if DevConfig.enableEditableAPI {
GDHostManager.apiAddress = userDefaults.string(forKey: GDHostManagerStore.Custom.apiAddress) ?? "https://zhibo.ishuaji.cn" GDHostManager.apiAddress = userDefaults.string(forKey: GDHostManagerStore.Custom.apiAddress) ?? "https://zhibo.ygfhkj.cn"
GDHostManager.imageDownUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.imageDownUrl) ?? "https://zhibocdn.ishuaji.cn/comm" GDHostManager.imageDownUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.imageDownUrl) ?? "https://zhibocdn.ygfhkj.cn/comm"
GDHostManager.accountsUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.accountsUrl) ?? "https://accounts.ishuaji.cn" GDHostManager.accountsUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.accountsUrl) ?? "https://accounts.ygfhkj.cn"
GDHostManager.webUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.webUrl) ?? "https://zhiboweb.lvdou66.com" GDHostManager.webUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.webUrl) ?? "https://zhiboweb.cxylive.top"
// GDHostManager.redPacketUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.redPacketUrl) ?? "http://money.lvdou66.com" // GDHostManager.redPacketUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.redPacketUrl) ?? "http://money.cxylive.top"
GDHostManager.payUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.payUrl) ?? "https://pay.ishuaji.cn" GDHostManager.payUrl = userDefaults.string(forKey: GDHostManagerStore.Custom.payUrl) ?? "https://pay.ygfhkj.cn"
GDHostManager.h5Url = userDefaults.string(forKey: GDHostManagerStore.Custom.h5Url) ?? "https://activity.ishuaji.cn" GDHostManager.h5Url = userDefaults.string(forKey: GDHostManagerStore.Custom.h5Url) ?? "https://activity.ygfhkj.cn"
GDHostManager.openapi = userDefaults.string(forKey: GDHostManagerStore.Custom.openapiUrl) ?? "https://openapi.lvdou66.com" GDHostManager.openapi = userDefaults.string(forKey: GDHostManagerStore.Custom.openapiUrl) ?? "https://openapi.cxylive.top"
// 如果有自定义API,那么返回 // 如果有自定义API,那么返回
if let apiAddress : String = userDefaults.string(forKey: GDHostManagerStore.Custom.apiAddress) { if let apiAddress : String = userDefaults.string(forKey: GDHostManagerStore.Custom.apiAddress) {
...@@ -89,10 +89,10 @@ public class GDHostManager { ...@@ -89,10 +89,10 @@ public class GDHostManager {
if cdn != "" { if cdn != "" {
GDHostManager.imageDownUrl = "\(cdn)/comm" GDHostManager.imageDownUrl = "\(cdn)/comm"
} else { } else {
GDHostManager.imageDownUrl = "https://zhibocdn.lvdou66.com/comm" GDHostManager.imageDownUrl = "https://zhibocdn.cxylive.top/comm"
} }
} else { } else {
GDHostManager.imageDownUrl = "https://zhibocdn.lvdou66.com/comm" GDHostManager.imageDownUrl = "https://zhibocdn.cxylive.top/comm"
} }
if let lvdou : String = currentApiDic["lvdou"] as? String { if let lvdou : String = currentApiDic["lvdou"] as? String {
...@@ -148,24 +148,24 @@ public class GDHostManager { ...@@ -148,24 +148,24 @@ public class GDHostManager {
if apiArray.count == 0 { if apiArray.count == 0 {
// 如果有API数据,那么加载数据 // 如果有API数据,那么加载数据
var basicServer1 = Dictionary<String, Any>() var basicServer1 = Dictionary<String, Any>()
basicServer1["api"] = "https://zhibo.lvdou66.com" basicServer1["api"] = "https://zhibo.cxylive.top"
basicServer1["cdn"] = "https://zhibocdn.lvdou66.com" basicServer1["cdn"] = "https://zhibocdn.cxylive.top"
basicServer1["pay"] = "https://pay.lvdou66.com" basicServer1["pay"] = "https://pay.cxylive.top"
basicServer1["web"] = "https://zhiboweb.lvdou66.com" basicServer1["web"] = "https://zhiboweb.cxylive.top"
basicServer1["redpacket"] = "http://money.lvdou66.com" basicServer1["redpacket"] = "http://money.cxylive.top"
basicServer1["lvdou"] = "https://accounts.lvdou66.com" basicServer1["lvdou"] = "https://accounts.cxylive.top"
basicServer1["h5"] = "https://activity.ishuaji.cn" basicServer1["h5"] = "https://activity.ygfhkj.cn"
basicServer1["openapi"] = "https://openapi.lvdou66.com" basicServer1["openapi"] = "https://openapi.cxylive.top"
var basicServer2 = Dictionary<String, Any>() var basicServer2 = Dictionary<String, Any>()
basicServer2["api"] = "https://zhibo.ishuaji.cn" basicServer2["api"] = "https://zhibo.ygfhkj.cn"
basicServer2["cdn"] = "https://bpgs1.yabolive.co" basicServer2["cdn"] = "https://bpgs1.yabolive.co"
basicServer2["pay"] = "https://pay.ishuaji.com" basicServer2["pay"] = "https://pay.cxylive.top"
basicServer2["web"] = "https://zhiboweb.ishuaji.com" basicServer2["web"] = "https://zhiboweb.cxylive.top"
basicServer2["redpacket"] = "http://money.ishuaji.com" basicServer2["redpacket"] = "http://money.cxylive.top"
basicServer2["lvdou"] = "https://accounts.ishuaji.com" basicServer2["lvdou"] = "https://accounts.cxylive.top"
basicServer2["h5"] = "https://activity.ishuaji.cn" basicServer2["h5"] = "https://activity.ygfhkj.cn"
basicServer2["openapi"] = "https://openapi.lvdou66.com" basicServer2["openapi"] = "https://openapi.cxylive.top"
GDHostManager.apiArray = [basicServer1, basicServer2] GDHostManager.apiArray = [basicServer1, basicServer2]
...@@ -212,10 +212,10 @@ public class GDHostManager { ...@@ -212,10 +212,10 @@ public class GDHostManager {
if cdn != "" { if cdn != "" {
currentimageDownUrl = "\(cdn)/comm" currentimageDownUrl = "\(cdn)/comm"
} else { } else {
currentimageDownUrl = "https://zhibocdn.lvdou66.com/comm" currentimageDownUrl = "https://zhibocdn.cxylive.top/comm"
} }
} else { } else {
currentimageDownUrl = "https://zhibocdn.lvdou66.com/comm" currentimageDownUrl = "https://zhibocdn.cxylive.top/comm"
} }
if let lvdou : String = currentApiDic["lvdou"] as? String { if let lvdou : String = currentApiDic["lvdou"] as? String {
...@@ -288,10 +288,10 @@ public class GDHostManager { ...@@ -288,10 +288,10 @@ public class GDHostManager {
if cdn != "" { if cdn != "" {
GDHostManager.imageDownUrl = "\(cdn)/comm" GDHostManager.imageDownUrl = "\(cdn)/comm"
} else { } else {
GDHostManager.imageDownUrl = "https://zhibocdn.lvdou66.com/comm" GDHostManager.imageDownUrl = "https://zhibocdn.cxylive.top/comm"
} }
} else { } else {
GDHostManager.imageDownUrl = "https://zhibocdn.lvdou66.com/comm" GDHostManager.imageDownUrl = "https://zhibocdn.cxylive.top/comm"
} }
if let lvdou : String = currentApiDic["lvdou"] as? String { if let lvdou : String = currentApiDic["lvdou"] as? String {
......
...@@ -789,7 +789,12 @@ extension JSON { ...@@ -789,7 +789,12 @@ extension JSON {
public var stringValue: String { public var stringValue: String {
get { get {
switch type { switch type {
case .string: return object as? String ?? "" case .string:
var result = (object as? String) ?? ""
result = result.replacingOccurrences(of: "果冻", with: "羞涩")
result = result.replacingOccurrences(of: "果券", with: "小券")
result = result.replacingOccurrences(of: "直播", with: "")
return result as? String ?? ""
case .number: return rawNumber.stringValue case .number: return rawNumber.stringValue
case .bool: return (object as? Bool).map { String($0) } ?? "" case .bool: return (object as? Bool).map { String($0) } ?? ""
default: return "" default: return ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment