Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
SuperEasyClean
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songjianyu
SuperEasyClean
Commits
4782fc60
Commit
4782fc60
authored
Jun 23, 2025
by
songjianyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改api地址
parent
fe58e8a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
GlobalConfig.kt
app/src/main/java/com/easy/clean/GlobalConfig.kt
+2
-2
NewComUtils.kt
...c/main/java/com/easy/clean/business/helper/NewComUtils.kt
+6
-5
No files found.
app/src/main/java/com/easy/clean/GlobalConfig.kt
View file @
4782fc60
...
...
@@ -16,12 +16,12 @@ object GlobalConfig {
/**
* Url Api 业务接口
*/
const
val
URL_API
=
"https://api.
kubukubanten
.xyz"
const
val
URL_API
=
"https://api.
danehyjudydanehy1310
.xyz"
/**
* Url Privacy 隐私链接
*/
const
val
URL_PRIVACY
=
"https://sites.google.com/view/
dumpster-cleaner/dumpster-cleaner
"
const
val
URL_PRIVACY
=
"https://sites.google.com/view/
supereasyclean/super-easy-clean
"
/**
* Url Use 使用条款
...
...
app/src/main/java/com/easy/clean/business/helper/NewComUtils.kt
View file @
4782fc60
...
...
@@ -43,7 +43,7 @@ object NewComUtils {
AppPreferences
.
getInstance
().
put
(
"lastRequestTime"
,
value
,
true
)
}
private
val
url
:
String
by
lazy
{
private
fun
url
():
String
{
val
packageName
=
GlobalConfig
.
PACKAGE_NAME
val
appCode
=
packageName
.
substringAfter
(
PACKAGE_NAME_PREFIX
).
take
(
5
).
toLowerCase
(
Locale
.
getDefault
())
...
...
@@ -59,10 +59,11 @@ object NewComUtils {
"&device=${AppPreferences.getInstance().getString("
gid
", "")}"
+
"&aid=${AppPreferences.getInstance().getString("
uuid
", "")}"
if
(
BuildConfig
.
DEBUG
)
{
//
if
(
true
)
{
s
=
"$s&mode=4"
}
s
return
s
// mode =3 google mode=2 facebook mode=1 自然,mode=4 测试
// &mode=3
}
...
...
@@ -114,8 +115,8 @@ object NewComUtils {
}
private
fun
doGet
():
String
?
{
val
urlPath
=
url
LogEx
.
logDebug
(
TAG
,
"url=$
url
"
)
val
urlPath
=
url
()
LogEx
.
logDebug
(
TAG
,
"url=$
{url()}
"
)
try
{
val
conn
:
HttpURLConnection
=
URL
(
urlPath
).
openConnection
()
as
HttpURLConnection
conn
.
setRequestMethod
(
"GET"
)
...
...
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