新增 消息定时推送功能
This commit is contained in:
@@ -55,6 +55,7 @@ def api_create_task():
|
||||
return jsonify({"success": False, "error": "无效的请求数据"}), 400
|
||||
|
||||
# 获取用户名
|
||||
logger.debug(f"session:{session}")
|
||||
username = session.get('username')
|
||||
if not username:
|
||||
return jsonify({"success": False, "error": "未登录或会话已过期"}), 401
|
||||
|
||||
Reference in New Issue
Block a user