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
8462c71b
Commit
8462c71b
authored
Jun 02, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改极光推送为用户名注册
parent
b4887f63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
GeliBusinessPlatform/Model/LoginModel.swift
GeliBusinessPlatform/Model/LoginModel.swift
+4
-0
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
...inessPlatform/ViewController/登录/LoginViewController.swift
+2
-2
No files found.
GeliBusinessPlatform/Model/LoginModel.swift
View file @
8462c71b
...
...
@@ -26,11 +26,15 @@ class LoginModel: Mappable {
class
LoginDataModel
:
Mappable
{
var
user_token
:
String
?
//返回token值,用于用户验证
var
user_name
:
String
?
//用户名
required
init
?(
map
:
Map
)
{
}
func
mapping
(
map
:
Map
)
{
user_token
<-
map
[
"user_token"
]
user_name
<-
map
[
"user_name"
]
}
}
GeliBusinessPlatform/ViewController/登录/LoginViewController.swift
View file @
8462c71b
...
...
@@ -201,7 +201,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
self
.
loginBtn
.
isLoading
=
false
self
.
delegate
?
.
successLogin
()
JPUSHService
.
setAlias
(
dataM
.
data
?
.
user_token
,
completion
:
{
(
resCode
,
alias
,
num
)
in
JPUSHService
.
setAlias
(
self
.
phoneTF
.
text
,
completion
:
{
(
resCode
,
alias
,
num
)
in
},
seq
:
1433223
)
})
{
(
error
)
in
...
...
@@ -230,7 +230,7 @@ class LoginViewController: BaseViewController, CodeViewDelegate,GeliAlertViewDel
self
.
loginBtn
.
isLoading
=
false
self
.
delegate
?
.
successLogin
()
JPUSHService
.
setAlias
(
dataM
.
data
?
.
user_
token
,
completion
:
{
(
resCode
,
alias
,
num
)
in
JPUSHService
.
setAlias
(
dataM
.
data
?
.
user_
name
,
completion
:
{
(
resCode
,
alias
,
num
)
in
},
seq
:
1433223
)
...
...
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