Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
3e3b3681
Commit
3e3b3681
authored
Mar 11, 2024
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix next news 2024-03-11
parent
1a17c015
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
pot_libs
pot_libs
+1
-1
news_mgr_srv.py
unify_api/modules/qkadmin/service/news_mgr_srv.py
+3
-1
No files found.
pot_libs
@
25fccc14
Subproject commit
d071cc30c107419339a610e0230928c4504398bf
Subproject commit
25fccc14e021a8bc04243257f9d7584e2c50f587
unify_api/modules/qkadmin/service/news_mgr_srv.py
View file @
3e3b3681
...
...
@@ -9,6 +9,7 @@ from unify_api.constants import OSS_NEWS
from
pot_libs.logger
import
log
from
unify_api.modules.common.procedures.file_operate_pds
import
upload_file
from
pot_libs.mysql_util.mysql_util
import
MysqlUtil
from
pot_libs.settings
import
SETTING
async
def
upload_file_helper
(
file
):
...
...
@@ -24,7 +25,8 @@ async def upload_file_helper(file):
file_url
=
f
"{OSS_NEWS}/{yr}/{month}/{uuid4()}.{file_name_lst[1]}"
log
.
info
(
f
"准备上传文件 {file_name} {file_url}"
)
is_upload
=
await
upload_file
(
file
,
file_url
,
bucket
=
"qk-public-dev"
)
is_upload
=
await
upload_file
(
file
,
file_url
,
bucket
=
SETTING
.
qingstor_public_bucket
)
return
is_upload
,
file_url
...
...
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