Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
23945752
Commit
23945752
authored
May 29, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关闭极光
parent
897a6d8f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+5
-5
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
...inessPlatform/ViewController/登录/LoginViewController.swift
+3
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
23945752
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
23945752
...
...
@@ -27,7 +27,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
// Override point for customization after application launch.
setting_Jpush
(
application
:
application
,
launchOptions
:
launchOptions
)
//
setting_Jpush(application: application, launchOptions: launchOptions)
return
true
...
...
@@ -98,13 +98,13 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
// 注册deviceToken
func
application
(
_
application
:
UIApplication
,
didRegisterForRemoteNotificationsWithDeviceToken
deviceToken
:
Data
)
{
JPUSHService
.
registerDeviceToken
(
deviceToken
)
//
JPUSHService.registerDeviceToken(deviceToken)
}
// 接受数据
func
application
(
_
application
:
UIApplication
,
didReceiveRemoteNotification
userInfo
:
[
AnyHashable
:
Any
],
fetchCompletionHandler
completionHandler
:
@escaping
(
UIBackgroundFetchResult
)
->
Void
)
{
print
(
"1"
,
userInfo
)
JPUSHService
.
handleRemoteNotification
(
userInfo
)
//
JPUSHService.handleRemoteNotification(userInfo)
completionHandler
(
.
newData
)
}
...
...
@@ -112,7 +112,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
// 接受数据
func
application
(
_
application
:
UIApplication
,
didReceiveRemoteNotification
userInfo
:
[
AnyHashable
:
Any
])
{
print
(
"2"
,
userInfo
)
JPUSHService
.
handleRemoteNotification
(
userInfo
)
//
JPUSHService.handleRemoteNotification(userInfo)
}
...
...
@@ -123,7 +123,7 @@ class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDel
func
applicationDidBecomeActive
(
_
application
:
UIApplication
)
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
UIApplication
.
shared
.
applicationIconBadgeNumber
=
0
JPUSHService
.
setBadge
(
0
)
//
JPUSHService.setBadge(0)
}
// MARK: UISceneSession Lifecycle
...
...
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
View file @
23945752
...
...
@@ -119,9 +119,9 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
self
.
loginBtn
.
isLoading
=
false
self
.
delegate
?
.
successLogin
()
JPUSHService
.
setAlias
(
self
.
phoneTF
.
text
,
completion
:
{
(
resCode
,
alias
,
num
)
in
},
seq
:
1433223
)
//
JPUSHService.setAlias(self.phoneTF.text, completion: { (resCode, alias, num) in
//
//
}, seq: 1433223)
})
{
(
error
)
in
self
.
loginBtn
.
isLoading
=
false
}
...
...
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