Commit 4b4c1816 authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

parents f500ab85 be776036
...@@ -27,9 +27,10 @@ platform :ios do ...@@ -27,9 +27,10 @@ platform :ios do
develop_branch = "develop" develop_branch = "develop"
main_branch = "main" main_branch = "main"
youhua_branch = "youhua-dev" youhua_branch = "youhua-dev"
uat = "uat"
#打包正使用的分支 #打包正使用的分支
myPack_branch = youhua_branch myPack_branch = uat
# 打adhoc包 执行命令 fastlane galaxyTest # 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do lane :galaxyTest do
......
...@@ -4154,7 +4154,7 @@ ...@@ -4154,7 +4154,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -4295,7 +4295,7 @@ ...@@ -4295,7 +4295,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -4499,7 +4499,7 @@ ...@@ -4499,7 +4499,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -4545,7 +4545,7 @@ ...@@ -4545,7 +4545,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
......
...@@ -157,12 +157,6 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget ...@@ -157,12 +157,6 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
} }
@objc func didLogoutBtnClicked() { @objc func didLogoutBtnClicked() {
//灰度规则配置
YHUatHelper.shared.loadUatData()
YHCommonAlertView.show("", "您确定要退出登录吗?", "取消", "确定",fullGuestureEnable: false) { YHCommonAlertView.show("", "您确定要退出登录吗?", "取消", "确定",fullGuestureEnable: false) {
} callBack: { } callBack: {
......
...@@ -213,6 +213,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -213,6 +213,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
NotificationCenter.default.addObserver(self, selector: #selector(logoutSuccess), name: YhConstant.YhNotification.didLogoutSuccessNotifiction, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(logoutSuccess), name: YhConstant.YhNotification.didLogoutSuccessNotifiction, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(clearUnreadBadge), name: YhConstant.YhNotification.didMarkAllMessagesReadedNotifiction, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(clearUnreadBadge), name: YhConstant.YhNotification.didMarkAllMessagesReadedNotifiction, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(didRevUatParam), name: YhConstant.YhNotification.didRevUatParam, object: nil)
} }
deinit { deinit {
...@@ -247,6 +250,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -247,6 +250,11 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
} }
} }
@objc func didRevUatParam() {
loadItems()
}
@objc func clearUnreadBadge() { @objc func clearUnreadBadge() {
DispatchQueue.main.async { DispatchQueue.main.async {
for item in self.items { for item in self.items {
...@@ -279,7 +287,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -279,7 +287,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
items.append(item) items.append(item)
} }
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 2)) == 1 { if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 3)) == 1 {
let item = PersonalModuleItem(icon: "mine_item_code", title: "我的测评码".local, type:.myTestCode) let item = PersonalModuleItem(icon: "mine_item_code", title: "我的测评码".local, type:.myTestCode)
items.append(item) items.append(item)
} }
...@@ -295,7 +303,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -295,7 +303,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
items.append(item) items.append(item)
} }
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 5)) == 1 { if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 6)) == 1 {
let item = PersonalModuleItem(icon: "mine_item_about_us", title: "关于我们".local, type:. aboutUs) let item = PersonalModuleItem(icon: "mine_item_about_us", title: "关于我们".local, type:. aboutUs)
items.append(item) items.append(item)
} }
......
...@@ -7,20 +7,6 @@ ...@@ -7,20 +7,6 @@
// //
import Foundation import Foundation
extension Int {
// //1-可见 2-不可见 3-新界面
// var uatValue : Bool {
// if self == 1 {
// return true
// } else if self == 2 {
// return false
// }
// return false
// }
}
enum YHUatModules: Int { enum YHUatModules: Int {
/* /*
默认展示 默认展示
...@@ -88,11 +74,30 @@ class YHUatHelper: NSObject { ...@@ -88,11 +74,30 @@ class YHUatHelper: NSObject {
let vm = YHUatHelperViewModel() let vm = YHUatHelperViewModel()
return vm return vm
}() }()
override init() {
super.init()
NotificationCenter.default.addObserver(self, selector: #selector(loginSuccess), name: YhConstant.YhNotification.didLoginSuccessNotifiction, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(logoutSuccess), name: YhConstant.YhNotification.didLogoutSuccessNotifiction, object: nil)
}
} }
// MARK: - 私有方法 // MARK: - 私有方法
private extension YHUatHelper { private extension YHUatHelper {
@objc func loginSuccess() {
viewModel.isDataOk = false
loadUatData()
}
@objc func logoutSuccess() {
viewModel.dataList = nil
}
} }
// MARK: - 公有方法 // MARK: - 公有方法
...@@ -133,7 +138,7 @@ extension YHUatHelper { ...@@ -133,7 +138,7 @@ extension YHUatHelper {
if !viewModel.isDataOk { if !viewModel.isDataOk {
viewModel.getUatList { success, error in viewModel.getUatList { success, error in
if success { if success {
NotificationCenter.default.post(name: YhConstant.YhNotification.didRevUatParam, object: nil)
} else { } else {
} }
......
...@@ -266,5 +266,9 @@ extension YhConstant { ...@@ -266,5 +266,9 @@ extension YhConstant {
// 改变底部tabbar上 分享View的展示状态 // 改变底部tabbar上 分享View的展示状态
public static let changeShareViewStatusOnTabBarNotifiction = Notification.Name(rawValue: "com.yinhe.change.shareView.status") public static let changeShareViewStatusOnTabBarNotifiction = Notification.Name(rawValue: "com.yinhe.change.shareView.status")
//获取灰度参数
public static let didRevUatParam = Notification.Name(rawValue: "com.yinhe.didRevUatParam")
} }
} }
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 to comment