diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4d22bd1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/backend/venv/ diff --git a/backend/app/__pycache__/__init__.cpython-310.pyc b/backend/app/__pycache__/__init__.cpython-310.pyc index 7be535c..02c304f 100644 Binary files a/backend/app/__pycache__/__init__.cpython-310.pyc and b/backend/app/__pycache__/__init__.cpython-310.pyc differ diff --git a/backend/app/__pycache__/__init__.cpython-311.pyc b/backend/app/__pycache__/__init__.cpython-311.pyc index ccd0ce1..26b0d02 100644 Binary files a/backend/app/__pycache__/__init__.cpython-311.pyc and b/backend/app/__pycache__/__init__.cpython-311.pyc differ diff --git a/backend/app/__pycache__/config.cpython-310.pyc b/backend/app/__pycache__/config.cpython-310.pyc index f0cdc7d..240359e 100644 Binary files a/backend/app/__pycache__/config.cpython-310.pyc and b/backend/app/__pycache__/config.cpython-310.pyc differ diff --git a/backend/app/__pycache__/config.cpython-311.pyc b/backend/app/__pycache__/config.cpython-311.pyc index 0514ea5..296d06a 100644 Binary files a/backend/app/__pycache__/config.cpython-311.pyc and b/backend/app/__pycache__/config.cpython-311.pyc differ diff --git a/backend/app/__pycache__/models.cpython-310.pyc b/backend/app/__pycache__/models.cpython-310.pyc index 1d5d280..5093a1e 100644 Binary files a/backend/app/__pycache__/models.cpython-310.pyc and b/backend/app/__pycache__/models.cpython-310.pyc differ diff --git a/backend/app/__pycache__/models.cpython-311.pyc b/backend/app/__pycache__/models.cpython-311.pyc index 332c8ea..8b295af 100644 Binary files a/backend/app/__pycache__/models.cpython-311.pyc and b/backend/app/__pycache__/models.cpython-311.pyc differ diff --git a/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-310.pyc b/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-310.pyc index cc9aff5..4ffaafd 100644 Binary files a/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-310.pyc and b/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-310.pyc differ diff --git a/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-311.pyc b/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-311.pyc index cb88e7e..1770dea 100644 Binary files a/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-311.pyc and b/backend/app/ml/__pycache__/naive_bayes_classifier.cpython-311.pyc differ diff --git a/backend/app/routes/__pycache__/admin_routes.cpython-310.pyc b/backend/app/routes/__pycache__/admin_routes.cpython-310.pyc index 84374b5..fbae0ea 100644 Binary files a/backend/app/routes/__pycache__/admin_routes.cpython-310.pyc and b/backend/app/routes/__pycache__/admin_routes.cpython-310.pyc differ diff --git a/backend/app/routes/__pycache__/admin_routes.cpython-311.pyc b/backend/app/routes/__pycache__/admin_routes.cpython-311.pyc index 77bac58..6085c6d 100644 Binary files a/backend/app/routes/__pycache__/admin_routes.cpython-311.pyc and b/backend/app/routes/__pycache__/admin_routes.cpython-311.pyc differ diff --git a/backend/app/routes/__pycache__/content_routes.cpython-310.pyc b/backend/app/routes/__pycache__/content_routes.cpython-310.pyc index ec31912..ca359db 100644 Binary files a/backend/app/routes/__pycache__/content_routes.cpython-310.pyc and b/backend/app/routes/__pycache__/content_routes.cpython-310.pyc differ diff --git a/backend/app/routes/__pycache__/content_routes.cpython-311.pyc b/backend/app/routes/__pycache__/content_routes.cpython-311.pyc index b2fffe6..88a2965 100644 Binary files a/backend/app/routes/__pycache__/content_routes.cpython-311.pyc and b/backend/app/routes/__pycache__/content_routes.cpython-311.pyc differ diff --git a/backend/app/routes/__pycache__/spam_routes.cpython-310.pyc b/backend/app/routes/__pycache__/spam_routes.cpython-310.pyc index ae2d7a9..70f9ece 100644 Binary files a/backend/app/routes/__pycache__/spam_routes.cpython-310.pyc and b/backend/app/routes/__pycache__/spam_routes.cpython-310.pyc differ diff --git a/backend/app/routes/__pycache__/spam_routes.cpython-311.pyc b/backend/app/routes/__pycache__/spam_routes.cpython-311.pyc index fbc3fcc..6ce462b 100644 Binary files a/backend/app/routes/__pycache__/spam_routes.cpython-311.pyc and b/backend/app/routes/__pycache__/spam_routes.cpython-311.pyc differ diff --git a/backend/mysqlconfig.json b/backend/mysqlconfig.json index 59702cd..1399dad 100644 --- a/backend/mysqlconfig.json +++ b/backend/mysqlconfig.json @@ -1,8 +1,8 @@ { - "host": "192.168.2.183", - "port": 3308, + "host": "127.0.0.1", + "port": 3306, "user": "root", - "password": "rootroot", + "password": "123456", "database": "spam_nb_miniapp", "charset": "utf8mb4", "admin_init": { diff --git a/backend/mysqlconfig.json.back b/backend/mysqlconfig.json.back deleted file mode 100644 index eddc86b..0000000 --- a/backend/mysqlconfig.json.back +++ /dev/null @@ -1,17 +0,0 @@ -{ - "host": "127.0.0.1", - "port": 3306, - "user": "root", - "password": "pk123123", - "database": "spam_nb_miniapp", - "charset": "utf8mb4", - "admin_init": { - "create_default_admin": true, - "username": "admin", - "password": "Admin@123456", - "nickname": "系统管理员" - }, - "detection_init": { - "spam_threshold": 0.75 - } -} diff --git a/miniprogram/project.config.json b/miniprogram/project.config.json index f406ef7..b78624d 100644 --- a/miniprogram/project.config.json +++ b/miniprogram/project.config.json @@ -1,35 +1,39 @@ { - "setting": { - "es6": true, - "postcss": true, - "minified": true, - "uglifyFileName": false, - "enhance": true, - "packNpmRelationList": [], - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "useCompilerPlugins": false, - "minifyWXML": true, - "compileWorklet": false, - "uploadWithSourceMap": true, - "packNpmManually": false, - "minifyWXSS": true, - "localPlugins": false, - "disableUseStrict": false, - "condition": false, - "swc": false, - "disableSWC": true - }, - "compileType": "miniprogram", - "simulatorPluginLibVersion": {}, - "packOptions": { - "ignore": [], - "include": [] - }, - "appid": "wx42ba28b8e545ba14", - "editorSetting": {}, - "libVersion": "3.15.0" + "setting": { + "es6": true, + "postcss": true, + "minified": true, + "uglifyFileName": false, + "enhance": true, + "packNpmRelationList": [], + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "useCompilerPlugins": false, + "minifyWXML": true, + "compileWorklet": false, + "uploadWithSourceMap": true, + "packNpmManually": false, + "minifyWXSS": true, + "localPlugins": false, + "disableUseStrict": false, + "condition": false, + "swc": false, + "disableSWC": true + }, + "compileType": "miniprogram", + "simulatorPluginLibVersion": {}, + "packOptions": { + "ignore": [], + "include": [] + }, + "appid": "wx42ba28b8e545ba14", + "editorSetting": { + "tabIndent": "tab", + "tabSize": 4 + }, + "libVersion": "3.15.0", + "condition": {} } \ No newline at end of file diff --git a/miniprogram/project.private.config.json b/miniprogram/project.private.config.json index 5c16e47..485c284 100644 --- a/miniprogram/project.private.config.json +++ b/miniprogram/project.private.config.json @@ -1,21 +1,21 @@ { - "libVersion": "3.15.0", - "projectname": "miniprogram", - "setting": { - "urlCheck": true, - "coverView": true, - "lazyloadPlaceholderEnable": false, - "skylineRenderEnable": false, - "preloadBackgroundData": false, - "autoAudits": false, - "showShadowRootInWxmlPanel": true, - "compileHotReLoad": true, - "useApiHook": true, - "useStaticServer": false, - "useLanDebug": false, - "showES6CompileOption": false, - "checkInvalidKey": true, - "ignoreDevUnusedFiles": true, - "bigPackageSizeSupport": false - } + "libVersion": "3.15.0", + "projectname": "miniprogram", + "setting": { + "urlCheck": false, + "coverView": true, + "lazyloadPlaceholderEnable": false, + "preloadBackgroundData": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "compileHotReLoad": true, + "useApiHook": true, + "useStaticServer": false, + "useLanDebug": false, + "showES6CompileOption": false, + "checkInvalidKey": true, + "ignoreDevUnusedFiles": true, + "bigPackageSizeSupport": false + }, + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html" } \ No newline at end of file