Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
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
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
1afd1821
Commit
1afd1821
authored
Apr 07, 2022
by
sheteng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享落地页
parent
3fac8c07
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
15 deletions
+19
-15
app/src/main/java/com/ccwangluo/accelerator/adapter/KotlinDataAdapter.kt
...va/com/ccwangluo/accelerator/adapter/KotlinDataAdapter.kt
+1
-1
app/src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
...src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
+15
-12
channels.txt
channels.txt
+2
-1
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
+1
-1
No files found.
app/src/main/java/com/ccwangluo/accelerator/adapter/KotlinDataAdapter.kt
View file @
1afd1821
...
...
@@ -46,7 +46,7 @@ class KotlinDataAdapter<T> private constructor() : RecyclerView.Adapter<KotlinDa
* 设置数据
*/
fun
setData
(
lists
:
ArrayList
<
B
>):
Builder
<
B
>
{
adapter
.
mDatalist
=
lists
adapter
.
mDatalist
=
lists
return
this
}
...
...
app/src/main/java/com/ccwangluo/accelerator/utils/SysUtils.kt
View file @
1afd1821
...
...
@@ -120,18 +120,21 @@ object SysUtils {
}
fun
initChannel
(
context
:
Context
)
{
val
channel
=
PackerNg
.
getChannel
(
context
)
if
(!
channel
.
isNullOrBlank
())
{
SettingSPUtils
.
channel
=
when
(
channel
)
{
"guanwang"
->
1
"huawei"
->
2
"xiaomi"
->
3
"vivo"
->
4
"yingyongbao"
->
5
"OPPO"
->
6
"baiduzhushou"
->
7
"wufan"
->
8
else
->
1
if
(
SettingSPUtils
.
channel
==
0
)
{
val
channel
=
PackerNg
.
getChannel
(
context
)
if
(!
channel
.
isNullOrBlank
())
{
SettingSPUtils
.
channel
=
when
(
channel
)
{
"guanwang"
->
1
"huawei"
->
2
"xiaomi"
->
3
"vivo"
->
4
"yingyongbao"
->
5
"OPPO"
->
6
"baiduzhushou"
->
7
"wufan"
->
8
"share"
->
9
else
->
1
}
}
}
}
...
...
channels.txt
View file @
1afd1821
...
...
@@ -5,4 +5,5 @@ vivo
yingyongbao
OPPO
baiduzhushou
wufan
\ No newline at end of file
wufan
share
\ No newline at end of file
core/src/main/java/com/github/shadowsocks/http/HttpConfig.kt
View file @
1afd1821
...
...
@@ -38,5 +38,5 @@ object HttpConfig {
val
MEMBER_CENTER
=
"/memberCenter"
//分享落地页
val
SHARE_URL
=
"http://ttspeed.saiqinkj.com/
index_pc
.html"
val
SHARE_URL
=
"http://ttspeed.saiqinkj.com/
share
.html"
}
\ No newline at end of file
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