Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
1c685888
Commit
1c685888
authored
Jan 08, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 不使用的带
parent
1164f216
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
74 deletions
+16
-74
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+13
-10
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-64
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
1c685888
...
@@ -10,9 +10,7 @@ import ESTabBarController_swift
...
@@ -10,9 +10,7 @@ import ESTabBarController_swift
import
IQKeyboardManagerSwift
import
IQKeyboardManagerSwift
import
SmartCodable
import
SmartCodable
import
GKNavigationBarSwift
import
GKNavigationBarSwift
import
DeviceKit
// 阿里云一键登录密钥
let
AliCloudLoginSecret
=
"MuKKbWPm4DRHmZpgASqjI3L1HtiOlxyKWmocGnJhbiibdfaKlwYUj8ISgOexPHLAUAhdo6NNIGOi8oCAeqA1PO9b4ea3YwHXKnIa2u7BCTkd5L4IswsGgljfBeGIyRhoFCnCibix7RwQEqhrkdZ2KMsE/NtPrXfi+EU3oAnO9tXIztzvpAe75Pna2mUKMvO1qt4SSmPe4VnEOX5LCdbn7sGAvOLN8/l/fcCdEU7FA+AGLTY+547jlwan3wyJYJn0Sc8qnEW9LBxRwTDpEZPqyg=="
@main
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
...
@@ -28,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
...
@@ -28,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
//2.通用UI设置
//2.通用UI设置
// setupWholeUI()
// setupWholeUI()
//3.其他第三方sdk设置
//3.其他第三方sdk设置
thirdSetting
()
thirdSetting
()
...
@@ -64,14 +62,19 @@ extension AppDelegate {
...
@@ -64,14 +62,19 @@ extension AppDelegate {
Bugly
.
start
(
withAppId
:
"5dc2acc53e"
)
Bugly
.
start
(
withAppId
:
"5dc2acc53e"
)
#endif
#endif
//3.一键登录
let
handler
=
TXCommonHandler
.
sharedInstance
()
if
!
Device
.
current
.
isSimulator
{
handler
.
setAuthSDKInfo
(
AliCloudLoginSecret
)
{
[
weak
self
]
dic
in
//3.一键登录
let
handler
=
TXCommonHandler
.
sharedInstance
()
guard
self
!=
nil
else
{
return
}
handler
.
setAuthSDKInfo
(
YhConstant
.
Alipay
.
kAliOnePressPhoneLoginKey
)
{
[
weak
self
]
dic
in
print
(
"Ali Cloud login completed : /(dic) "
)
guard
self
!=
nil
else
{
return
}
print
(
"Ali Cloud login completed : /(dic) "
)
}
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
1c685888
...
@@ -155,29 +155,6 @@ class YhConstant {
...
@@ -155,29 +155,6 @@ class YhConstant {
// MARK: - 用户协议
// MARK: - 用户协议
static
let
userProtocalURL
=
YHBaseUrlManager
.
shared
.
h5URL
()
+
"landing/index.html#/subpages/personal/pages/protocol/index?classify=agreement"
static
let
userProtocalURL
=
YHBaseUrlManager
.
shared
.
h5URL
()
+
"landing/index.html#/subpages/personal/pages/protocol/index?classify=agreement"
// MARK: - 付费咨询服务协议
static
let
payProtocalURL
=
"https://www.baidu.com"
// MARK: - 官网地址
static
let
officialWebsite
=
"https://www.sumian.com"
// MARK: - 量表入口
static
let
liangBiaoEntryWebsite
=
YHBaseUrlManager
.
shared
.
h5URL
()
+
"landing/index.html#/pages/medicineCenter/index"
// MARK: - 通用链接,可以在 Safari 等 web 环境打开 APP,目前主要是提供给微信APP调用
static
let
universal_link
=
"https://sdapi.sumian.com/sleepdoctor/"
static
let
wx_universal_link
=
universal_link
+
"wx-sign-in/"
// MARK: - 医学中心
static
let
medical_center_url
=
YHBaseUrlManager
.
shared
.
h5URL
()
+
"landing/index.html#/pages/medicineCenter/index"
// MARK: - 文章详情
static
let
article_detail_url
=
YHBaseUrlManager
.
shared
.
h5URL
()
+
"landing/index.html#/subpages/platform/pages/articledetail/index?immerse=1"
}
}
...
@@ -185,17 +162,9 @@ class YhConstant {
...
@@ -185,17 +162,9 @@ class YhConstant {
// MARK: - 阿里云 手机号一键登录 秘钥信息
static
let
kAliOnePressPhoneLoginKey
=
"pjYDHIVE1Q4qu7QJNI8MaxfvqJQvn5j+Az8xHRlnctj+kUAGf2Hin6ONsTFu1yjCwWPvhmw5NlhFo5DuP1SabykuX1Dz/xl4aDDLQQ5oijBNqRtwmwFAHl/exvfLk6zndWdv3Hi+DUL6gRwAj2UWj1rNXAMP2YSlisC0NSrFFFpiKyHAd2dM2OpIiGh9lkGeihU5iOjv/IycVMW6l2Sx9QqcrKiAX44aPMp0/uS5+y0xYwy/CjV6bvpacHNstxtVFd2Vgi7p454="
// MARK: - 登录信息
// MARK: - 登录信息
static
let
KLoginedInfoKey
=
"KLoginedInfoKey"
static
let
KLoginedInfoKey
=
"KLoginedInfoKey"
// MARK: - 上次登录成功后的 手机号码
static
let
KLastLoginedSuccessPhoneKey
=
"KLastLoginedSuccessPhoneKey"
// MARK: - 登录用户 详情信息
static
let
kDetailInfo
=
"kDetailInfo"
}
}
...
@@ -212,16 +181,12 @@ extension YhConstant {
...
@@ -212,16 +181,12 @@ extension YhConstant {
// MARK: - 支付宝
// MARK: - 支付宝
struct
Alipay
{
struct
Alipay
{
static
let
scheme
=
"com.usleep.health.alipay"
// MARK: - 阿里云 手机号一键登录 秘钥信息
static
let
kAliOnePressPhoneLoginKey
=
"MuKKbWPm4DRHmZpgASqjI3L1HtiOlxyKWmocGnJhbiibdfaKlwYUj8ISgOexPHLAUAhdo6NNIGOi8oCAeqA1PO9b4ea3YwHXKnIa2u7BCTkd5L4IswsGgljfBeGIyRhoFCnCibix7RwQEqhrkdZ2KMsE/NtPrXfi+EU3oAnO9tXIztzvpAe75Pna2mUKMvO1qt4SSmPe4VnEOX5LCdbn7sGAvOLN8/l/fcCdEU7FA+AGLTY+547jlwan3wyJYJn0Sc8qnEW9LBxRwTDpEZPqyg=="
}
}
// MARK: - 通知相关 名称
// MARK: - 通知相关 名称
class
BsNotification
{
class
YhNotification
{
public
static
let
didCancelTaskNotification
=
Notification
.
Name
(
rawValue
:
"org.alamofire.notification.name.request.didCancelTask"
)
//用户详细信息更改成功
public
static
let
didUpdateUserDetailInfoSuccessNotifiction
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.updateUserDetailInfo.success"
)
//登录成功
//登录成功
public
static
let
didLoginSuccessNotifiction
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.login.success"
)
public
static
let
didLoginSuccessNotifiction
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.login.success"
)
...
@@ -231,31 +196,5 @@ extension YhConstant {
...
@@ -231,31 +196,5 @@ extension YhConstant {
//token 过期
//token 过期
public
static
let
tokenInvalidateNotifiction
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.token.invalidate"
)
public
static
let
tokenInvalidateNotifiction
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.token.invalidate"
)
//用户注册 在完成登录、修改密码后需要 填写标签
public
static
let
needSelectTagsNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.selecte.tags"
)
//跳转安睡主页
public
static
let
goAnSleepNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.go.An.sleep"
)
//跳转填写量表列表界面
public
static
let
goFillScaleNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.go.Fill.Scale"
)
//支付结果回调
public
static
let
payResultNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.pay.result"
)
//隐藏tabBar
public
static
let
tabBarHideNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.tabBar.hide"
)
//显示tabBar
public
static
let
tabBarShowNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.tabBar.show"
)
//安睡主页切换Tab
public
static
let
sleepPageChangeTabNotification
=
Notification
.
Name
(
rawValue
:
"com.usleep.health.sleepPage.changeTab"
)
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment