41 lines
7.6 KiB
Plaintext
41 lines
7.6 KiB
Plaintext
2025-11-16 13:06:04,834 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 13:06:06,705 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 13:06:36,685 INFO: 开始创建版本 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:98]
|
|
2025-11-16 13:06:36,685 INFO: 请求的Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryBaWqjoVX0KdrVN1Z [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:99]
|
|
2025-11-16 13:06:36,685 INFO: 请求方法: POST [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:100]
|
|
2025-11-16 13:06:36,686 INFO: 请求URL: http://127.0.0.1:5000/api/v1/versions [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:101]
|
|
2025-11-16 13:06:36,690 INFO: 请求头: {'Host': '127.0.0.1:5000', 'Connection': 'keep-alive', 'Content-Length': '769', 'Sec-Ch-Ua-Platform': '"Windows"', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0', 'Sec-Ch-Ua': '"Chromium";v="142", "Microsoft Edge";v="142", "Not_A Brand";v="99"', 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryBaWqjoVX0KdrVN1Z', 'Sec-Ch-Ua-Mobile': '?0', 'Accept': '*/*', 'Origin': 'http://127.0.0.1:5000', 'Sec-Fetch-Site': 'same-origin', 'Sec-Fetch-Mode': 'cors', 'Sec-Fetch-Dest': 'empty', 'Referer': 'http://127.0.0.1:5000/versions/create', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6', 'Cookie': 'remember_token=1|ae366cbb6a7c117a69a287f322b91e6d75e14efd338ed4249fe139a40620856246a057db8c7c1df9883347210e17f379727e0d28d269d0002fc5126ec50d83d8; session=eyJfZnJlc2giOmZhbHNlLCJfdXNlcl9pZCI6IjEifQ.aRlGfA.q1DLjLrFgNZLvNT_ChqsVKj_Uyc'} [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:102]
|
|
2025-11-16 13:06:36,690 INFO: 处理表单数据请求 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:106]
|
|
2025-11-16 13:06:36,691 INFO: 收到的参数: product_id=ArticleReplace, version_num=1.0 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:141]
|
|
2025-11-16 13:06:36,691 INFO: 验证产品是否存在: product_id=ArticleReplace [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:147]
|
|
2025-11-16 13:06:36,691 INFO: 执行产品查询... [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:149]
|
|
2025-11-16 13:06:36,693 INFO: 数据库中所有产品: [('ArticleReplace', '改写软件')] [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:153]
|
|
2025-11-16 13:06:36,695 INFO: 产品查询结果: <Product 改写软件> [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:157]
|
|
2025-11-16 13:06:36,695 INFO: 检查版本号是否重复: product_id=ArticleReplace, version_num=1.0 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:162]
|
|
2025-11-16 13:06:36,697 INFO: 创建版本对象: product_id=ArticleReplace, version_num=1.0 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:172]
|
|
2025-11-16 13:06:36,699 INFO: 添加版本到数据库 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:186]
|
|
2025-11-16 13:06:36,699 INFO: 提交数据库事务 [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:188]
|
|
2025-11-16 13:06:36,708 INFO: 检查是否立即发布: publish_now=False [in D:\work\code\python\KaMiXiTong\master\app\api\version.py:191]
|
|
2025-11-16 13:06:36,715 ERROR: 记录审计日志失败: (pymysql.err.ProgrammingError) (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\'product_id\': "\'ArticleReplace\'", \'version_num\': "\'1.0\'", \'publish_now\': \'0\'}, \'\' at line 1')
|
|
[SQL: INSERT INTO audit_log (admin_id, action, target_type, target_id, details, ip_address, user_agent, create_time) VALUES (%(admin_id)s, %(action)s, %(target_type)s, %(target_id)s, %(details)s, %(ip_address)s, %(user_agent)s, %(create_time)s)]
|
|
[parameters: {'admin_id': 1, 'action': 'CREATE_VERSION', 'target_type': 'VERSION', 'target_id': 2, 'details': {'product_id': 'ArticleReplace', 'version_num': '1.0', 'publish_now': False}, 'ip_address': '127.0.0.1', 'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0', 'create_time': datetime.datetime(2025, 11, 16, 5, 6, 36, 714215)}]
|
|
(Background on this error at: https://sqlalche.me/e/20/f405) [in D:\work\code\python\KaMiXiTong\master\app\models\audit_log.py:59]
|
|
2025-11-16 13:06:43,379 ERROR: 记录审计日志失败: (pymysql.err.ProgrammingError) (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\'version_num\': "\'1.0\'", \'status\': \'1\', \'status_name\': "\'发布\'"}, \'127.0.0.1\', \' at line 1')
|
|
[SQL: INSERT INTO audit_log (admin_id, action, target_type, target_id, details, ip_address, user_agent, create_time) VALUES (%(admin_id)s, %(action)s, %(target_type)s, %(target_id)s, %(details)s, %(ip_address)s, %(user_agent)s, %(create_time)s)]
|
|
[parameters: {'admin_id': 1, 'action': 'UPDATE_VERSION_STATUS', 'target_type': 'VERSION', 'target_id': 2, 'details': {'version_num': '1.0', 'status': 1, 'status_name': '发布'}, 'ip_address': '127.0.0.1', 'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0', 'create_time': datetime.datetime(2025, 11, 16, 5, 6, 43, 377554)}]
|
|
(Background on this error at: https://sqlalche.me/e/20/f405) [in D:\work\code\python\KaMiXiTong\master\app\models\audit_log.py:59]
|
|
2025-11-16 13:07:09,664 ERROR: 记录审计日志失败: (pymysql.err.ProgrammingError) (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'\'product_id\': "\'ArticleReplace\'", \'count\': \'1\', \'license_type\': \'1\', \'license_ke\' at line 1')
|
|
[SQL: INSERT INTO audit_log (admin_id, action, target_type, target_id, details, ip_address, user_agent, create_time) VALUES (%(admin_id)s, %(action)s, %(target_type)s, %(target_id)s, %(details)s, %(ip_address)s, %(user_agent)s, %(create_time)s)]
|
|
[parameters: {'admin_id': 1, 'action': 'GENERATE_LICENSES', 'target_type': 'LICENSE', 'target_id': None, 'details': {'product_id': 'ArticleReplace', 'count': 1, 'license_type': 1, 'license_keys': ['4SGGNAPF-HPGNQC1Z-6D7OH879-9BGW32PI']}, 'ip_address': '127.0.0.1', 'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 Edg/142.0.0.0', 'create_time': datetime.datetime(2025, 11, 16, 5, 7, 9, 662553)}]
|
|
(Background on this error at: https://sqlalche.me/e/20/f405) [in D:\work\code\python\KaMiXiTong\master\app\models\audit_log.py:59]
|
|
2025-11-16 13:07:44,918 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 17:40:11,814 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 17:40:13,787 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 18:01:08,089 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 18:02:10,913 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 18:06:15,046 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 18:11:51,110 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:71]
|
|
2025-11-16 19:05:00,160 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:74]
|
|
2025-11-16 19:05:02,504 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:74]
|
|
2025-11-16 19:05:57,986 INFO: KaMiXiTong startup [in D:\work\code\python\KaMiXiTong\master\config.py:74]
|