Commit 2009cefb authored by Steven杜宇's avatar Steven杜宇

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

parents 6d7b5b14 6eed8516
...@@ -72,7 +72,7 @@ target 'galaxy' do ...@@ -72,7 +72,7 @@ target 'galaxy' do
#导航栏、手势 #导航栏、手势
pod 'GKNavigationBarSwift','1.6.5' pod 'GKNavigationBarSwift','1.6.5'
#crash统计 #crash统计
pod 'Bugly','2.5.93' pod 'Bugly','2.6.1'
#神策数据分析 #神策数据分析
pod 'SensorsAnalyticsSDK','4.6.0' pod 'SensorsAnalyticsSDK','4.6.0'
#主流APP分类切换滚动视图 #主流APP分类切换滚动视图
......
...@@ -5132,7 +5132,7 @@ ...@@ -5132,7 +5132,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 = 3; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -5274,7 +5274,7 @@ ...@@ -5274,7 +5274,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 = 3; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -5479,7 +5479,7 @@ ...@@ -5479,7 +5479,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 = 3; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -5526,7 +5526,7 @@ ...@@ -5526,7 +5526,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 = 3; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
......
...@@ -15,12 +15,17 @@ class YHButlerServiceViewModel { ...@@ -15,12 +15,17 @@ class YHButlerServiceViewModel {
let params: [String : Any] = ["yh_id": id] let params: [String : Any] = ["yh_id": id]
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.QiYu.userInfomation let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.QiYu.userInfomation
let _ = YHNetRequest.getRequest(url: strUrl, params: params) { [weak self] json, code in let _ = YHNetRequest.getRequest(url: strUrl, params: params) { [weak self] json, code in
guard let data = json.data, let jsonData = try? JSONSerialization.data(withJSONObject: data, options: []), let dataString = jsonData.string(encoding: .utf8) else { if json.code == 200 {
guard let data = json.data as? [Any], let dataString = data.yh_toJSONString() else {
callBackBlock(nil, nil, YHErrorModel()) callBackBlock(nil, nil, YHErrorModel())
return return
} }
let avatar = self?.getAvatarFromJsonObject(data) let avatar = self?.getAvatarFromJsonObject(data)
callBackBlock(dataString, avatar, nil) callBackBlock(dataString, avatar, nil)
} else {
let err : YHErrorModel = YHErrorModel(errorCode:Int32(json.code), errorMsg: json.msg)
callBackBlock(nil, nil,err)
}
} failBlock: { err in } failBlock: { err in
callBackBlock(nil, nil, err) callBackBlock(nil, nil, err)
} }
......
...@@ -103,6 +103,7 @@ extension YHButlerServiceManager { ...@@ -103,6 +103,7 @@ extension YHButlerServiceManager {
customActionConfig?.pullRoamMessage = true customActionConfig?.pullRoamMessage = true
// 拉取漫游消息条数,默认20条,最大100条 // 拉取漫游消息条数,默认20条,最大100条
customActionConfig?.roamMessageLimit = 100 customActionConfig?.roamMessageLimit = 100
customActionConfig?.linkClickBlock = { linkAddress in customActionConfig?.linkClickBlock = { linkAddress in
guard let linkAddress = linkAddress, (linkAddress.isValidHttpUrl || linkAddress.isValidHttpsUrl || linkAddress.isValidFileUrl), let url = URL(string: linkAddress) else { guard let linkAddress = linkAddress, (linkAddress.isValidHttpUrl || linkAddress.isValidHttpsUrl || linkAddress.isValidFileUrl), let url = URL(string: linkAddress) else {
return QYLinkClickActionPolicy.open return QYLinkClickActionPolicy.open
...@@ -112,7 +113,6 @@ extension YHButlerServiceManager { ...@@ -112,7 +113,6 @@ extension YHButlerServiceManager {
safariViewController.modalPresentationStyle = .fullScreen safariViewController.modalPresentationStyle = .fullScreen
UIViewController.current?.present(safariViewController, animated: true, completion: nil) UIViewController.current?.present(safariViewController, animated: true, completion: nil)
return QYLinkClickActionPolicy.cancel return QYLinkClickActionPolicy.cancel
} }
} }
} }
...@@ -125,7 +125,7 @@ extension YHButlerServiceManager { ...@@ -125,7 +125,7 @@ extension YHButlerServiceManager {
func isUatAllowed() -> Bool { func isUatAllowed() -> Bool {
let allowed = YHUatHelper.shared.getUatModuleStatusBy(module: .QiYu_Service) == 1 let allowed = YHUatHelper.shared.getUatModuleStatusBy(module: .QiYu_Service) == 1
//TODO: for test Alex //TODO: for test Alex
return allowed || true return allowed
} }
/// 初始化SDK用户信息 /// 初始化SDK用户信息
......
...@@ -408,8 +408,9 @@ extension YHHKPlanItemView : UITextViewDelegate { ...@@ -408,8 +408,9 @@ extension YHHKPlanItemView : UITextViewDelegate {
return true return true
} }
let newLength = calcTextLength(string: textView.text) let tempTxt = textView.text + text
return newLength <= maxNumbler - 1 let newLength = calcTextLength(string: tempTxt)
return newLength <= maxNumbler
} }
func textViewDidChange(_ textView: UITextView) { func textViewDidChange(_ textView: UITextView) {
......
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