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
e46af81f
Commit
e46af81f
authored
Apr 18, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
替换我的积分 url
parent
b420adcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+11
-6
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
e46af81f
...
@@ -45,7 +45,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
...
@@ -45,7 +45,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
let
likeViewModel
:
YHMyLikeViewModel
=
YHMyLikeViewModel
()
let
likeViewModel
:
YHMyLikeViewModel
=
YHMyLikeViewModel
()
let
msgViewModel
:
YHMsgViewModel
=
YHMsgViewModel
()
let
msgViewModel
:
YHMsgViewModel
=
YHMsgViewModel
()
lazy
var
tableView
:
UITableView
=
{
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
let
tableView
=
UITableView
(
frame
:
CGRect
.
zero
,
style
:
.
grouped
)
if
#available(iOS 11.0, *)
{
if
#available(iOS 11.0, *)
{
...
@@ -239,12 +239,17 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
...
@@ -239,12 +239,17 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
var
token
:
String
=
param
var
token
:
String
=
param
//待h5端同学提供
//待h5端同学提供
var
url
=
"https:www.baidu.com"
#if DEBUG
var
url
=
"https://test-hkdiy-h5.galaxy-immi.com/superApp/integral"
#elseif TESTNEV
var
url
=
"https://test-hkdiy-h5.galaxy-immi.com/superApp/integral"
#else
var
url
=
"https://thkdiy-h5.galaxy-immi.com/superApp/integral"
#endif
let
addtionString
=
randomAlphanumericString
(
6
)
//随机6个字母或者数字
let
addtionString
=
randomAlphanumericString
(
6
)
//随机6个字母或者数字
let
indexToInsert
=
token
.
index
(
token
.
startIndex
,
offsetBy
:
6
)
//插入位置,这里以第六个字符后面为例
let
indexToInsert
=
token
.
index
(
token
.
startIndex
,
offsetBy
:
6
)
//插入位置,这里以第六个字符后面为例
token
.
insert
(
contentsOf
:
addtionString
,
at
:
indexToInsert
)
token
.
insert
(
contentsOf
:
addtionString
,
at
:
indexToInsert
)
url
=
url
+
"?param="
+
token
url
=
url
+
"?param="
+
token
YHHUD
.
flash
(
message
:
"还需要H5同学给URL"
)
printLog
(
url
)
printLog
(
url
)
...
@@ -275,9 +280,9 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
...
@@ -275,9 +280,9 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
extension
YHMyViewController
{
extension
YHMyViewController
{
func
randomAlphanumericString
(
_
length
:
Int
)
->
String
{
func
randomAlphanumericString
(
_
length
:
Int
)
->
String
{
let
letters
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
let
letters
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
let
randomString
=
(
0
..<
length
)
.
map
{
_
in
String
(
letters
.
randomElement
()
!
)
}
.
reduce
(
""
,
+
)
let
randomString
=
(
0
..<
length
)
.
map
{
_
in
String
(
letters
.
randomElement
()
!
)
}
.
reduce
(
""
,
+
)
return
randomString
return
randomString
}
}
@objc
func
loginSuccess
()
{
@objc
func
loginSuccess
()
{
...
...
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