Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
e0663c17
Commit
e0663c17
authored
Nov 15, 2019
by
sikang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add applist
parent
48efee29
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
python/func.py
+2
-2
script/script_help.sh
+4
-4
src/main/java/com/common/activity/AgreementPolicyActivity.java
+1
-1
src/main/java/tech/starwin/network/Gateway.java
+1
-1
No files found.
python/func.py
View file @
e0663c17
...
...
@@ -311,9 +311,9 @@ class Function:
# 创建新协议
def
new_privacy
(
self
,
config
):
permissions
=
"1235"
permissions
=
"1235
6
"
if
config
[
'contact'
]
!=
"true"
:
permissions
=
"235"
permissions
=
"235
6
"
file_name
=
"
%
s_
%
s"
%
(
config
[
'corp_id'
],
config
[
'app_name'
]
.
replace
(
" "
,
"_"
))
print
(
"path url:
%
s/privacy1.html"
%
config
[
'home'
])
...
...
script/script_help.sh
View file @
e0663c17
...
...
@@ -282,9 +282,9 @@ elif (($commod == '26')) || (($commod == '266'));then
echo
"对外协议:
${
home
}
/privacy.html"
exit
1
;
fi
params
=
"?name=
${
app_name
// /%20
}
&list=1235"
params
=
"?name=
${
app_name
// /%20
}
&list=1235
6
"
if
[
${
contact
}
!=
'true'
]
;
then
params
=
"?name=
${
app_name
// /%20
}
&list=235"
;
fi
params
=
"?name=
${
app_name
// /%20
}
&list=235
6
"
;
fi
echo
" "
echo
"
${
corp_id
}
${
app_name
}
"
...
...
@@ -325,9 +325,9 @@ elif (($commod == '28'));then
elif
((
$commod
==
'29'
))
;
then
cd
privacy
permissions
=
"1235"
permissions
=
"1235
6
"
if
[
${
contact
}
!=
'true'
]
;
then
permissions
=
"235"
;
fi
permissions
=
"235
6
"
;
fi
file_name
=
"
${
corp_id
}
_
${
app_name
}
"
echo
"path url:
${
home
}
/privacy1.html"
python new_privacy.py
"
${
app_name
}
"
"
${
permissions
}
"
"/Users/connor/Documents/apks/privacy/privacy0.html"
"/Users/connor/Documents/apks/
${
file_name
}
.html"
...
...
src/main/java/com/common/activity/AgreementPolicyActivity.java
View file @
e0663c17
...
...
@@ -54,7 +54,7 @@ public class AgreementPolicyActivity extends BaseActivity {
* 注册协议和隐私政策
*/
public
static
String
getLocalPolicy
()
{
String
permissions
=
BuildConfig
.
NEED_CONTACT
?
"1235
"
:
"235
"
;
String
permissions
=
BuildConfig
.
NEED_CONTACT
?
"1235
6"
:
"2356
"
;
return
"file:///android_asset/web/privacy.html?name="
+
LibConfig
.
APP_NAME
.
replace
(
" "
,
"%20"
)
+
"&list="
+
permissions
;
}
...
...
src/main/java/tech/starwin/network/Gateway.java
View file @
e0663c17
...
...
@@ -47,7 +47,7 @@ public class Gateway {
* 注册协议和隐私政策
*/
public
static
String
getAgreementPolicyUrl
()
{
String
permissions
=
BuildConfig
.
NEED_CONTACT
?
"1235
"
:
"235
"
;
String
permissions
=
BuildConfig
.
NEED_CONTACT
?
"1235
6"
:
"2356
"
;
return
gatewayInfo
.
privacy
.
get
(
0
)
+
"?name="
+
LibConfig
.
APP_NAME
.
replace
(
" "
,
"%20"
)
+
"&list="
+
permissions
;
...
...
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