Toggle navigation
Toggle navigation
This project
Loading...
Sign in
hh_public
/
hhsdk.ios.demo.trtc
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chengyanfang
2021-03-17 13:34:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a8d6ba4d0ef05c28381c5826e6bf9f88e6d94f3
8a8d6ba4
1 parent
d48aa303
3.1.0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
HHMSDKDemo/AppDelegate.swift
HHMSDKDemo/Res/Info.plist
HHMSDKDemo/SettingVC.swift
HHMSDKDemo/AppDelegate.swift
View file @
8a8d6ba
...
...
@@ -29,7 +29,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func
application
(
_
app
:
UIApplication
,
open
url
:
URL
,
options
:
[
UIApplication
.
OpenURLOptionsKey
:
Any
]
=
[:])
->
Bool
{
print
(
url
)
if
url
.
scheme
==
"hh-medic.com"
{
NotificationCenter
.
default
.
post
(
name
:
NSNotification
.
Name
(
rawValue
:
"WX_H5_PAY"
),
object
:
nil
)
return
true
}
return
true
}
...
...
HHMSDKDemo/Res/Info.plist
View file @
8a8d6ba
...
...
@@ -27,6 +27,8 @@
<string></string>
</dict>
<dict>
<key>
CFBundleIdentifier
</key>
<string></string>
<key>
CFBundleTypeRole
</key>
<string>
Editor
</string>
<key>
CFBundleURLName
</key>
...
...
HHMSDKDemo/SettingVC.swift
View file @
8a8d6ba
...
...
@@ -76,9 +76,12 @@ class SettingVC : UIViewController {
let
userCenterSetting
=
(
"个人中心设置"
,[
(
"是否隐藏个人中心入口"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
hideUserCenter
,
true
),
(
"是否展示激活码入口"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableActivate
,
true
),
(
"是否展示档案库入口"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableMedical
,
true
),
(
"隐藏个人中心入口"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
hideUserCenter
,
true
),
(
"展示激活码入口"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableActivate
,
true
),
(
"展示档案库入口"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableMedical
,
true
),
(
"档案库可以增加成员"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableAddMemberInDoc
,
true
),
(
"展示会员信息"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableVipInfo
,
true
),
(
"展示购买VIP"
,
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableBuyService
,
true
),
])
sections
.
append
(
userCenterSetting
)
...
...
@@ -223,6 +226,15 @@ extension SettingVC {
case
(
3
,
2
):
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableMedical
=
isOpen
case
(
3
,
3
):
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableAddMemberInDoc
=
isOpen
case
(
3
,
4
):
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableVipInfo
=
isOpen
case
(
3
,
5
):
HHSDKOptions
.
default
.
mUserCenterOptions
.
enableBuyService
=
isOpen
default
:
break
}
...
...
Please
register
or
login
to post a comment