Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for attachments #51

Merged
merged 1 commit into from
Apr 6, 2024
Merged

feat: add support for attachments #51

merged 1 commit into from
Apr 6, 2024

Conversation

LeslieLeung
Copy link
Owner

No description provided.

@LeslieLeung LeslieLeung linked an issue Apr 6, 2024 that may be closed by this pull request
Copy link

sonarcloud bot commented Apr 6, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@LeslieLeung LeslieLeung merged commit c3487dc into main Apr 6, 2024
3 checks passed
@LeslieLeung LeslieLeung deleted the dev branch April 6, 2024 15:59
async def send_push(key: str, title: str = "", body: str = "", msg_type: str = ""):
return await serve_channels_async(key, title, body, msg_type=msg_type)
print("send push by form")
return await serve_channels_async(key, title, body, msg_type=msg_type, attach=attach)

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
Comment on lines +36 to +42
return await serve_channels_async(
request.key,
request.title,
request.body,
msg_type=request.msg_type,
attach=request.attach,
)

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
attach: str = Query("", description="base64 string, only support image"),
):
print("send push")
return await serve_channels_async(key, title, body, msg_type=msg_type, attach=attach)

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

能否支持发送图片/附件 呢
1 participant