max 3 недель назад
Родитель
Сommit
e12511e755

+ 1 - 0
.obsidian/app.json

@@ -0,0 +1 @@
+{}

+ 1 - 0
.obsidian/appearance.json

@@ -0,0 +1 @@
+{}

+ 31 - 0
.obsidian/core-plugins.json

@@ -0,0 +1,31 @@
+{
+  "file-explorer": true,
+  "global-search": true,
+  "switcher": true,
+  "graph": true,
+  "backlink": true,
+  "canvas": true,
+  "outgoing-link": true,
+  "tag-pane": true,
+  "properties": false,
+  "page-preview": true,
+  "daily-notes": true,
+  "templates": true,
+  "note-composer": true,
+  "command-palette": true,
+  "slash-command": false,
+  "editor-status": true,
+  "bookmarks": true,
+  "markdown-importer": false,
+  "zk-prefixer": false,
+  "random-note": false,
+  "outline": true,
+  "word-count": true,
+  "slides": false,
+  "audio-recorder": false,
+  "workspaces": false,
+  "file-recovery": true,
+  "publish": false,
+  "sync": true,
+  "webviewer": false
+}

+ 184 - 0
.obsidian/workspace.json

@@ -0,0 +1,184 @@
+{
+  "main": {
+    "id": "5dd69488ef8c2fe0",
+    "type": "split",
+    "children": [
+      {
+        "id": "285a1679585f7ee5",
+        "type": "tabs",
+        "children": [
+          {
+            "id": "dea760c674660437",
+            "type": "leaf",
+            "state": {
+              "type": "markdown",
+              "state": {
+                "file": "接口文档/基础信息/服务器相关/运维手册.md",
+                "mode": "source",
+                "source": false
+              },
+              "icon": "lucide-file",
+              "title": "运维手册"
+            }
+          }
+        ]
+      }
+    ],
+    "direction": "vertical"
+  },
+  "left": {
+    "id": "eb1029cc96f5bff4",
+    "type": "split",
+    "children": [
+      {
+        "id": "d65933974ba6402d",
+        "type": "tabs",
+        "children": [
+          {
+            "id": "4ac6a201e5f750ea",
+            "type": "leaf",
+            "state": {
+              "type": "file-explorer",
+              "state": {
+                "sortOrder": "alphabetical",
+                "autoReveal": false
+              },
+              "icon": "lucide-folder-closed",
+              "title": "文件列表"
+            }
+          },
+          {
+            "id": "30e95e4e921e7d3d",
+            "type": "leaf",
+            "state": {
+              "type": "search",
+              "state": {
+                "query": "",
+                "matchingCase": false,
+                "explainSearch": false,
+                "collapseAll": false,
+                "extraContext": false,
+                "sortOrder": "alphabetical"
+              },
+              "icon": "lucide-search",
+              "title": "搜索"
+            }
+          },
+          {
+            "id": "ed0e80af373dca81",
+            "type": "leaf",
+            "state": {
+              "type": "bookmarks",
+              "state": {},
+              "icon": "lucide-bookmark",
+              "title": "书签"
+            }
+          }
+        ]
+      }
+    ],
+    "direction": "horizontal",
+    "width": 300
+  },
+  "right": {
+    "id": "b396b1aaaca6dfa0",
+    "type": "split",
+    "children": [
+      {
+        "id": "78507358f98f6a91",
+        "type": "tabs",
+        "children": [
+          {
+            "id": "d08d59043e6f9a6d",
+            "type": "leaf",
+            "state": {
+              "type": "backlink",
+              "state": {
+                "file": "接口文档/工作日常/2025-05-11.md",
+                "collapseAll": false,
+                "extraContext": false,
+                "sortOrder": "alphabetical",
+                "showSearch": false,
+                "searchQuery": "",
+                "backlinkCollapsed": false,
+                "unlinkedCollapsed": true
+              },
+              "icon": "links-coming-in",
+              "title": "2025-05-11 的反向链接列表"
+            }
+          },
+          {
+            "id": "0a91e2a7e7dc5461",
+            "type": "leaf",
+            "state": {
+              "type": "outgoing-link",
+              "state": {
+                "file": "接口文档/工作日常/2025-05-11.md",
+                "linksCollapsed": false,
+                "unlinkedCollapsed": true
+              },
+              "icon": "links-going-out",
+              "title": "2025-05-11 的出链列表"
+            }
+          },
+          {
+            "id": "77f310116a24c382",
+            "type": "leaf",
+            "state": {
+              "type": "tag",
+              "state": {
+                "sortOrder": "frequency",
+                "useHierarchy": true,
+                "showSearch": false,
+                "searchQuery": ""
+              },
+              "icon": "lucide-tags",
+              "title": "标签"
+            }
+          },
+          {
+            "id": "5fa58a90ac0bfc70",
+            "type": "leaf",
+            "state": {
+              "type": "outline",
+              "state": {
+                "file": "接口文档/工作日常/2025-05-11.md",
+                "followCursor": false,
+                "showSearch": false,
+                "searchQuery": ""
+              },
+              "icon": "lucide-list",
+              "title": "2025-05-11 的大纲"
+            }
+          }
+        ]
+      }
+    ],
+    "direction": "horizontal",
+    "width": 300,
+    "collapsed": true
+  },
+  "left-ribbon": {
+    "hiddenItems": {
+      "switcher:打开快速切换": false,
+      "graph:查看关系图谱": false,
+      "canvas:新建白板": false,
+      "daily-notes:打开/创建今天的日记": false,
+      "templates:插入模板": false,
+      "command-palette:打开命令面板": false
+    }
+  },
+  "active": "dea760c674660437",
+  "lastOpenFiles": [
+    "接口文档/基础信息/服务器相关/运维日志/2025-07-06.md",
+    "Pasted image 20250706185644.png",
+    "接口文档/基础信息/服务器相关/运维手册.md",
+    "接口文档/基础信息/服务器相关/运维日志/20250517.md",
+    "接口文档/基础信息/服务器相关/运维日志/2025-05-25.md",
+    "接口文档/未命名.md",
+    "接口文档/2025-05-30.md",
+    "接口文档/工作日常/2025-05-11.md",
+    "接口文档/2025-05-15.md",
+    "接口文档/2025-05-22.md"
+  ]
+}

BIN
Pasted image 20250706185644.png


+ 18 - 18
push.sh

@@ -1,21 +1,21 @@
-|字段|值|
-|---|---|
-|id|1db8cf31cf974a76a39d84345ebbfad6|
-|order_no|20250424183507634293|
-|request_id|b826b4ef7515afa825182bb6bcf5b30e|
-|reference|(空)|
-|from_account_id|7aa548a724f75bb4a6eacd317e02241e|
-|to_account_id|9fe465a43ced52e294dc5b0a92870a67|
-|currency|USD|
-|amount|9904|
-|status|SUCCESS|
-|purpose|(空)|
-|completed_time|2025-04-24 18:35:08|
-|create_time|2025-04-24 18:35:08|
-|update_time|2025-04-24 18:35:08|
-|comment|(空)|
-|fee|0|
-|reason|(空)|
+| 字段              |                                 |
+| --------------- | -------------------------------- |
+| id              | 1db8cf31cf974a76a39d84345ebbfad6 |
+| order_no        | 20250424183507634293             |
+| request_id      | b826b4ef7515afa825182bb6bcf5b30e |
+| reference       | (空)                              |
+| from_account_id | 7aa548a724f75bb4a6eacd317e02241e |
+| to_account_id   | 9fe465a43ced52e294dc5b0a92870a67 |
+| currency        | USD                              |
+| amount          | 9904                             |
+| status          | SUCCESS                          |
+| purpose         | (空)                              |
+| completed_time  | 2025-04-24 18:35:08              |
+| create_time     | 2025-04-24 18:35:08              |
+| update_time     | 2025-04-24 18:35:08              |
+| comment         | (空)                              |
+| fee             | 0                                |
+| reason          | (空)                              |
 
 |出金公司|入金公司|交易类型| 交易金额|交易时间
 | --- |---|---|---|--- |

+ 12 - 12
接口文档/基础信息/服务器相关/运维手册.md

@@ -18,18 +18,18 @@ URL=https://www.aapanel.com/script/install_7.0_en.sh && if [ -f /usr/bin/curl ];
 # 数据库
 所有功能基于 root 账户下生成
 ## docker -mysql9.0基础信息
-| key  |  value |
-|---|---|
-|name|mysql_PfsC|
-|app name|MySQL|
-|app type|Database|
-|Database root password|F8D4cXMPt3jGd7LL|
-|mysql port|13306|
-|app directory|/www/dk_project/dk_app/mysql/mysql_PfsC|
-|Cpu core limit|No limit|
-|memory limit|No limit|
-|installed log|/tmp/mysql_PfsC.log|
-|Allow external access|yes|    
+| key                    | value                                   |     |
+| ---------------------- | --------------------------------------- | --- |
+| name                   | mysql_PfsC                              |     |
+| app name               | MySQL                                   |     |
+| app type               | Database                                |     |
+| Database root password | F8D4cXMPt3jGd7LL                        |     |
+| mysql port             | 13306                                   |     |
+| app directory          | /www/dk_project/dk_app/mysql/mysql_PfsC |     |
+| Cpu core limit         | No limit                                |     |
+| memory limit           | No limit                                |     |
+| installed log          | /tmp/mysql_PfsC.log                     |     |
+| Allow external access  | yes                                     |     |
 
 ## 新建数据库
 在 https://3.1.203.22:30745/database/mysql 中新建;

+ 127 - 0
接口文档/基础信息/服务器相关/运维日志/2025-07-06.md

@@ -0,0 +1,127 @@
+添加 va_test 数据库
+![[Pasted image 20250517105153.png]]
+
+### 配置数据库权限
+
+切换 root 账户权限
+```bsh
+sudo su
+```
+
+进入mysql 数据库容器中
+```
+docker exec -it fe8fde9961b2 /bin/bash
+```
+
+使用root账户登陆mysql
+```bash
+mysql -u root -p
+# 输入密码
+```
+
+创建 va_test 数据库访问账户
+```sql
+CREATE USER 'bison'@'%' IDENTIFIED BY 'tNWFdPAk8iwNRTnc';
+```
+
+分配数据库操作权限
+```sql
+GRANT ALL PRIVILEGES ON bison.* TO 'bison'@'%';
+
+FLUSH PRIVILEGES; 刷新数据库权限表
+```
+
+## 初始化数据库
+
+
+导出指定的数据库:
+```bash
+sudo su
+docker exec e78cd3bd7ffa mysqldump -uroot -p123456 bison | gzip > va_bison_2025-07-06.sql.gz
+```
+
+打开 /www/dk_project/dk_app/mysql/mysql_PfsC/data/ 路径;
+
+上传初始化文件
+![[va_bison_2025-07-06.sql.gz]]
+
+切换 root 账户权限
+```bsh
+sudo su
+```
+
+执行初始化命令
+```bash
+gunzip -c /www/dk_project/dk_app/mysql/mysql_PfsC/data/va_bison_2025-07-06.sql.gz | docker exec -i fe8fde9961b2 mysql -ubison -ptNWFdPAk8iwNRTnc bison
+```
+
+## 部署
+
+- 前端 /www/wwwroot/div_ottpay/ottpayhk
+- 后端 /www/wwwroot/div_ottpay/ottpayhk_server
+
+部署角色: root
+
+创建node执行服务
+![[Pasted image 20250706185644.png]]
+
+编写nginx
+```nginx
+server
+{
+    listen 80;
+    server_name ottpayhk.fusionpay.global;
+    index index.html index.htm default.htm default.html;
+    root /www/wwwroot/div_ottpay/ottpayhk/dist;
+    
+    #SSL-START SSL related configuration
+    #error_page 404/404.html;
+    
+    #SSL-END
+    
+    #ERROR-PAGE-START  Error page related configuration
+    #error_page 404 /404.html;
+    #error_page 502 /502.html;
+    #ERROR-PAGE-END
+    
+    
+    #REWRITE-START Pseudo-static related configuration
+    include /www/server/panel/vhost/rewrite/node_ottpayhk_server.conf;
+    #REWRITE-END
+    
+    #Files or directories forbidden to access
+    location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|package.json|package-lock.json|\.env|node_modules) {
+        return 404;
+    }
+    
+    #One-click application for SSL certificate verification directory related settings
+    location /.well-known/ {
+        root  /www/wwwroot/div_ottpay/ottpayhk_server;
+    }
+
+    # HTTP reverse proxy related settings begin >>>
+    location ~ /purge(/.*) {
+        proxy_cache_purge cache_one $host$request_uri$is_args$args;
+    }
+
+    location /api/ {
+        proxy_pass http://127.0.0.1:38848/api/;
+        proxy_set_header Host $host;
+        proxy_set_header X-Real-IP $remote_addr;
+        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_set_header REMOTE-HOST $remote_addr;
+        add_header X-Cache $upstream_cache_status;
+
+        proxy_connect_timeout 30s;
+        proxy_read_timeout 86400s;
+        proxy_send_timeout 30s;
+        proxy_http_version 1.1;
+        proxy_set_header Upgrade $http_upgrade;
+        proxy_set_header Connection "upgrade";
+    }
+    # End of HTTP reverse proxy related settings <<<
+    
+    access_log  /www/wwwlogs/ottpayhk_server.log;
+    error_log  /www/wwwlogs/ottpayhk_server.error.log;
+}
+```