Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Android-AutoPackage
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
app
Android-AutoPackage
Commits
107a4f11
Commit
107a4f11
authored
Jun 10, 2025
by
段志勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
95549
parent
905d195f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
apk_script/auto_push_ding_talk.py
+0
-5
apk_script/auto_upload_pgy.sh
+2
-0
No files found.
apk_script/auto_push_ding_talk.py
View file @
107a4f11
...
@@ -67,12 +67,7 @@ def send_ding_talk_request():
...
@@ -67,12 +67,7 @@ def send_ding_talk_request():
host_url
=
"https://oapi.dingtalk.com/robot/send?access_token="
+
get_dd_host
()
host_url
=
"https://oapi.dingtalk.com/robot/send?access_token="
+
get_dd_host
()
req
=
urllib
.
request
.
Request
(
host_url
)
req
=
urllib
.
request
.
Request
(
host_url
)
req
.
add_header
(
'Content-Type'
,
'application/json'
)
req
.
add_header
(
'Content-Type'
,
'application/json'
)
params_str
=
get_request_params_str
()
params_str
=
get_request_params_str
()
# print(params_str)
print
(
host_url
)
response
=
urllib
.
request
.
urlopen
(
req
,
params_str
.
encode
(
'utf-8'
))
response
=
urllib
.
request
.
urlopen
(
req
,
params_str
.
encode
(
'utf-8'
))
print
(
response
.
read
()
.
decode
(
'utf-8'
))
print
(
response
.
read
()
.
decode
(
'utf-8'
))
pass
pass
...
...
apk_script/auto_upload_pgy.sh
View file @
107a4f11
...
@@ -64,6 +64,8 @@ echo_log "${RESPONSE}"
...
@@ -64,6 +64,8 @@ echo_log "${RESPONSE}"
RESPONSE_CODE
=
$(
echo
$RESPONSE
| jq
'.code'
)
RESPONSE_CODE
=
$(
echo
$RESPONSE
| jq
'.code'
)
DD_ICON_URL
=
$(
echo
$RESPONSE
| jq
'.data.buildIcon'
)
DD_ICON_URL
=
$(
echo
$RESPONSE
| jq
'.data.buildIcon'
)
DD_DOWN_URL
=
$(
echo
$RESPONSE
| jq
'.data.buildShortcutUrl'
)
DD_DOWN_URL
=
$(
echo
$RESPONSE
| jq
'.data.buildShortcutUrl'
)
echo_log
${
DD_ICON_URL
}
echo_log
${
DD_DOWN_URL
}
if
[
$RESPONSE_CODE
-ne
0
]
;
then
if
[
$RESPONSE_CODE
-ne
0
]
;
then
echo_error
"upload error"
echo_error
"upload error"
...
...
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