浏览代码

2022-10-11_17:49

John-Hong 2 年之前
父节点
当前提交
705e73711d

+ 8 - 8
.obsidian/workspace

@@ -131,15 +131,15 @@
   },
   "active": "3d43b8d58cedd25b",
   "lastOpenFiles": [
-    "任务/yogo小程序对接/【kerry+对接用】C端帮跑腿及个人中心的详细说明.pdf",
+    "工具/chrome/network.md",
+    "工具/glances/说明.md",
+    "工具/python/说明.md",
+    "工具/sqlite/说明.md",
+    "工具/readline/说明.md",
+    "任务/yogo小程序对接/531665366857_.pic.jpg",
     "任务/yogo小程序对接/说明.md",
+    "任务/yogo小程序对接/【kerry+对接用】C端帮跑腿及个人中心的详细说明.pdf",
     "任务/yogo小程序对接/Kerry+ 原生 App 对接.pdf",
-    "任务/yogo小程序对接/Pasted image 20220927122529.png",
-    "任务/yogo小程序对接/Pasted image 20221008120238.png",
-    "任务/yogo小程序对接/Pasted image 20220929153608.png",
-    "任务/yogo小程序对接/Pasted image 20220928195513.png",
-    "任务/CRM|C端-临时停车 | H5扫码支付| 实现websocket集群的联调,调用小程序支付功能.md",
-    "项目/CRM/临时停车H5/UI改动/说明.md",
-    "工具/redis/说明.md"
+    "任务/yogo小程序对接/Pasted image 20220927122529.png"
   ]
 }

二进制
任务/yogo小程序对接/531665366857_.pic.jpg


+ 12 - 1
任务/yogo小程序对接/说明.md

@@ -126,4 +126,15 @@ https://dev-gateway-kip.kerryonvip.com/swagger-ui.html?urls.primaryName=robot-in
 ```
 当返回体不为空,并且不是常见的空类型的字符串格式,才会展示新版本的功能
 res.data && !/null|undefined|false|-|0/g.test(res.data) ? true : false
-```
+```
+
+
+![[531665366857_.pic.jpg]]
+
+
+
+### 问题
+用户收到取餐短信,点击链
+
+
+https://open.weixin.qq.com/sns/getexpappinfo?appid=wx92c3e55fbef6b2af&path=pages/tabbar/home/home.html?is_yogo_locker=true&site_uid=705&locker_id=2120380009#wechat-redirect

二进制
工具/chrome/Pasted image 20221010145047.png


二进制
工具/chrome/Pasted image 20221010145058.png


二进制
工具/chrome/Pasted image 20221010145104.png


+ 23 - 0
工具/chrome/network.md

@@ -0,0 +1,23 @@
+过滤
+
+-domain:arms-retcode.aliyuncs.com -domain:qa-tracking-cip.kerryplus.com
+
+
+#### chrome Network 过滤和高级过滤
+为什么用过滤?
+在我们对一个不熟悉的系统进行开发的时候,我们往往需要通过页面去查看当前页面都调用了后台的那些请求,或者去查找页面中所有的POST请求或者GET请求,这些在一个项目很复杂的时候变得尤其重要,但是因为页面的复杂性越来越高,我们查找的难度也越来越大。比如页面加载了很多的js文件,css文件等,这些是我们不想要关注的,但是他们会在开发工具里面一并交叉的罗列出来对我们查找接口造成了很大的影响。
+
+怎么用过滤
+一般过滤
+一般过滤很简单,比如你想查找所有.css文件那么就输入:.css
+![[Pasted image 20221010145047.png]]
+
+高级过滤
+一个字符 -(中划线),如下图所示:在Network这个选项卡的最左边有一个过滤的输入框,你只需要输入 - 就可以看到提示:
+![[Pasted image 20221010145058.png]]
+里面选项很多,不过你可以选中这些选项之后继续输入冒号查看当前选项内容提示:示例如下,如果你想查找所有POST里面包含了指定类型信息的请求的话,就可以通过输入method:POST来实现。注意这个表达式前面没有 -(中划线),输入 - 它的目的是为了 让你看到chrome提供了那些高级的选项。
+![[Pasted image 20221010145104.png]]
+说了这么多并没有解决我们上面提到的问题,我们的需求是过滤掉.css文件和.js文件,只留下其他的请求,这时候我们还是要用到 - , 中划线除了可以给你提示,但是它本身的含义是取反,以上面需求为例,我们可以通过使用 -.css -.js 来过滤掉css和js文件。-.css 和 -.js中间使用空格分开,意思就是过滤掉.css 和 .js文件,比如你想查找所有GET请求,除了可以使用表达式method:GET之外,还可以使用 -method:POST 来达到目的。
+————————————————
+版权声明:本文为CSDN博主「信行合一」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
+原文链接:https://blog.csdn.net/tengdazhang770960436/article/details/90644523

+ 71 - 0
工具/glances/说明.md

@@ -0,0 +1,71 @@
+```
+➜  english-news-website-nextjs git:(ts) brew install glances    
+
+==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/glances-3.2.7.arm64_monterey.bottle.tar.gz
+
+Already downloaded: /Users/sysadmin/Library/Caches/Homebrew/downloads/4c335c8f1f956bd9eb3b41b5f0eb7c695a7466ed82c49d7657b8c7d0d116cf5d--glances-3.2.7.arm64_monterey.bottle.tar.gz
+
+==> Pouring glances-3.2.7.arm64_monterey.bottle.tar.gz
+
+🍺  /opt/homebrew/Cellar/glances/3.2.7: 1,360 files, 20.2MB
+
+==> Running `brew cleanup glances`...
+
+Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
+
+Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
+```
+
+**glances 工作界面的说明 :** 在上图 的上部是 CPU 、Load(负载)、Mem(内存使用)、 Swap(交换分区)的使用情况。在上图的中上部是网络接口、Processes(进程)的使用情况。通常包括如下字段:
+
+```powershell
+ %CPU:该进程占用的 CPU 使用率
+ %MEM:该进程占用的物理内存和总内存的百分比
+ VIRT: 虚拟内存大小
+ RES: 进程占用的物理内存值
+ PID: 进程 ID 号
+ USER: 进程所有者的用户名
+ NI: 进程优先级
+ S: 进程状态,其中 S 表示休眠,R 表示正在运行,Z 表示僵死状态。
+ TIME+: 该进程启动后占用的总的 CPU 时间
+ IO_R 和 IO_W: 进程的读写 I/O 速率
+ Command: 进程名称
+```
+
+在上图的左侧是网络、磁盘IO、磁盘分区使用情况。 另外 glances 可以使用交互式的方式运行该工具,用户可以使用如下快捷键:
+
+```text
+ h : 显示帮助信息
+ q : 离开程序退出
+ c :按照 CPU 实时负载对系统进程进行排序
+ m :按照内存使用状况对系统进程排序
+ i:按照 I/O 使用状况对系统进程排序
+ p: 按照进程名称排序
+ d : 显示磁盘读写状况 
+ w : 删除日志文件
+ l :显示日志
+ s: 显示传感器信息
+ f : 显示系统信息
+ 1 :轮流显示每个 CPU 内核的使用情况(次选项仅仅使用在多核 CPU 系统)
+```
+
+**4.2、glances 使用方法**
+
+```text
+ glances 是一个命令行工具包括如下命令选项:
+ -b:显示网络连接速度 Byte/ 秒
+ -B @IP|host :绑定服务器端 IP 地址或者主机名称
+ -c @IP|host:连接 glances 服务器端
+ -C file:设置配置文件默认是 /etc/glances/glances.conf 
+ -d:关闭磁盘 I/O 模块
+ -e:显示传感器温度
+ -f file:设置输出文件(格式是 HTML 或者 CSV)
+ -m:关闭挂载的磁盘模块
+ -n:关闭网络模块
+ -p PORT:设置运行端口默认是 61209 
+ -P password:设置客户端 / 服务器密码
+ -s:设置 glances 运行模式为服务器
+ -t sec:设置屏幕刷新的时间间隔,单位为秒,默认值为 2 秒,数值许可范围:1~32767 
+ -h : 显示帮助信息
+ -v : 显示版本信息
+```

+ 69 - 0
工具/python/说明.md

@@ -0,0 +1,69 @@
+```
+➜  english-news-website-nextjs git:(ts) brew install python@3.10
+
+==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/python%403.10-3.10.6_2.arm64_monterey.bottle.tar.gz
+
+curl: (22) The requested URL returned error: 404
+
+  
+
+Warning: Bottle missing, falling back to the default domain...
+
+==> Downloading https://ghcr.io/v2/homebrew/core/python/3.10/manifests/3.10.6_2
+
+Already downloaded: /Users/sysadmin/Library/Caches/Homebrew/downloads/ec35c256efced4bfa1df5920d529d13bc0332f16ba26cf639d51239f14056920--python@3.10-3.10.6_2.bottle_manifest.json
+
+==> Downloading https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:6b294c48f986b1b011de46f22d11ad761ac60df2f07385558e3aa8b44f262e82
+
+Already downloaded: /Users/sysadmin/Library/Caches/Homebrew/downloads/0736cd2bad17643092e816237676544decc4dade4a993a0a627d8cb1791f2d3c--python@3.10--3.10.6_2.arm64_monterey.bottle.tar.gz
+
+==> Pouring python@3.10--3.10.6_2.arm64_monterey.bottle.tar.gz
+
+==> /opt/homebrew/Cellar/python@3.10/3.10.6_2/bin/python3.10 -m ensurepip
+
+==> /opt/homebrew/Cellar/python@3.10/3.10.6_2/bin/python3.10 -m pip install -v --no-deps --no-index --upgrade --isolated --target=/opt/homebrew/lib/python3.10/site-packages /opt/homebrew/Cellar/python@3.10/3.10.6_2
+
+==> Caveats
+
+Python has been installed as
+
+  /opt/homebrew/bin/python3
+
+  
+
+Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
+
+`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
+
+  /opt/homebrew/opt/python@3.10/libexec/bin
+
+  
+
+You can install Python packages with
+
+  pip3 install <package>
+
+They will install into the site-package directory
+
+  /opt/homebrew/lib/python3.10/site-packages
+
+  
+
+tkinter is no longer included with this formula, but it is available separately:
+
+  brew install python-tk@3.10
+
+  
+
+See: https://docs.brew.sh/Homebrew-and-Python
+
+==> Summary
+
+🍺  /opt/homebrew/Cellar/python@3.10/3.10.6_2: 3,114 files, 57.3MB
+
+==> Running `brew cleanup python@3.10`...
+
+Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
+
+Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
+```

+ 51 - 0
工具/readline/说明.md

@@ -0,0 +1,51 @@
+```
+Error: No such file or directory @ rb_sysopen - /Users/sysadmin/Library/Caches/Homebrew/downloads/39a84bfc99390b41af3e6aa9252a345e71111216ca4365ac1356c989d9b5994e--readline-8.1.2.arm64_monterey.bottle.tar.gz
+
+➜  english-news-website-nextjs git:(ts) brew install readline
+
+==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/readline-8.1.2.arm64_monterey.bottle.tar.gz
+
+curl: (22) The requested URL returned error: 404
+
+  
+
+Warning: Bottle missing, falling back to the default domain...
+
+==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.1.2
+
+Already downloaded: /Users/sysadmin/Library/Caches/Homebrew/downloads/e30c06196d2408e5d0630f9ebd7ab315f29656f1e3f5e0de4e3d08222a1c3c3a--readline-8.1.2.bottle_manifest.json
+
+==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:9d9d9512c80c6ae7c8281da84533222d90cb5e06accdfa98e0bff37672793cec
+
+Already downloaded: /Users/sysadmin/Library/Caches/Homebrew/downloads/bc39092b18d3b63ffea88c846b98ea4e6c1ee06dafe52016e62aee9a4a037f57--readline--8.1.2.arm64_monterey.bottle.tar.gz
+
+==> Pouring readline--8.1.2.arm64_monterey.bottle.tar.gz
+
+==> Caveats
+
+readline is keg-only, which means it was not symlinked into /opt/homebrew,
+
+because macOS provides BSD libedit.
+
+  
+
+For compilers to find readline you may need to set:
+
+  export LDFLAGS="-L/opt/homebrew/opt/readline/lib"
+
+  export CPPFLAGS="-I/opt/homebrew/opt/readline/include"
+
+  
+
+==> Summary
+
+🍺  /opt/homebrew/Cellar/readline/8.1.2: 48 files, 1.7MB
+
+==> Running `brew cleanup readline`...
+
+Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
+
+Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
+
+➜  english-news-website-nextjs git:(ts)
+```

+ 1 - 0
工具/sqlite/说明.md

@@ -0,0 +1 @@
+sqlite