feat: marktext

This commit is contained in:
eric
2022-12-14 10:27:47 +08:00
parent afb2aea4a6
commit bf160fbad9
28 changed files with 273 additions and 0 deletions

28
cityNew/小程序.md Normal file
View File

@@ -0,0 +1,28 @@
| AppID(小程序ID) | wx2b2ec2ba5ee694bc |
| --------------------- | ------------------ |
| smallzhiyun@gmail.com | |
| 原始ID | gh_a3692ee8e69f微信客服 企业 id: `wwb04af9a97514271c` |
| ---- | ------------------------------------------------ |
视频号id: `sphqzUmI0BlppCI`
客服链接: `[微信客服](https://work.weixin.qq.com/kfid/kfc70f3f112c97a54c5)
---
- 山峰距离排序
- 地图导航lbs
- 天气 (一周)
- 活动状态: 立即报名/ 取消 | 待审核 | 待参加 | 已结束
- 校验登录态
- 打卡- 朋友圈 [展示]
- 首页信息流
- 消息推送

View File

@@ -0,0 +1,89 @@
## 微信小程序开发
> 开发背景
作为一个长期的资深宅男,是时候经常去户外呼吸下新鲜空气,贴近大自然,而在深圳这种快节奏的城市, 唯有爬山,
![Screen Shot 2022-11-27 at 17.33.17.png](/Users/eric/Documents/marktext/images/b7fc0f881c68ba0c072034da23536018c723e9ba.png)
> 预约报名
使用`个人主体`开发一款预约报名的`微信小程序`,历史背景,在此之前也开发过,不过由于每次提交审核, 都会被驳回,理由是质问使用的`知晓云sdk" 是什么用途,于是就懒得维护了
在微信云开发推出之前,小程序依靠知晓云的baas服务,进行数据的CURD增删查改,以及cms管理后台
<img src="file:///Users/eric/Documents/marktext/images/f9f348dbf0b7880b397020504d51275c6f09696e.png" title="" alt="Screen Shot 2022-11-27 at 17.33.58.png" width="149">
> 微信云开发
鉴于云开发,是微信团队主推的自家服务,免鉴权集成,数据库/内容存储/静态网站/云托管等服务应有,于是开始重构
- 使用taro多端框架 (react)
- vant-ui
- 微信云开发 (后端)
<img title="" src="file:///Users/eric/Documents/marktext/images/621c04eda54b1754af3998ccf3cc94af674425b3.png" alt="Screen Shot 2022-11-27 at 17.31.39.png" width="298">
---
## 开发问题
<img src="file:///Users/eric/Documents/marktext/images/54f3f8471c583b62e1c38102adc6a57311f1ea57.png" title="" alt="Screen Shot 2022-11-27 at 17.41.44.png" width="393">
> 隐私问题
以前的小程序, 点一下按钮可以拿到非常多的用户信息
手机硬件/软件的多个维度
用户的省份/城市/性别/昵称/头像
而现在,即使是昵称/头像,都要`专用的组件和api,`用户体验也非常差
其他的信息基本拿不到了,没法做数据分析
而`手机号/发票`类似的, 只有`企业认证`的主体,才有权限
> 权限问题
微信文档的api非常全,但是适用于`个人`主体的开放openapi,非常少
最常见的form表单,是基本不允许的,不能收集用户相关信息
> 开发问题
开发小程序,不是传统的前端/后端/运维部署, 很多功能实现基于云开发特有的`云函数`所以要对微信开发者工具IDE, 和 一些概念有理解和实践
本身还有一些bug,比如展示的2张图片,是同一个存储库,会有渲染异常,偶现
---
## 微信生态
> 公众号与个人微信
原本以为小程序,只是实现app一样的功能, 却发现微信生态是环环相扣的
- 公众号/视频号/小程序/小商店/小游戏
个人小程序支持
1. 引导关注公众号 [扫码场景]
2. 长按识别个人微信二维码
<img src="file:///Users/eric/Documents/marktext/images/b3a82e7a5785d4fe00dc9593970a3b82373c38e7.png" title="" alt="Screen Shot 2022-11-27 at 17.44.37.png" width="132">
---
## 其他延伸
> 微信服务,已经庞大到难以想象
由于IOS的小程序,没有`发送到桌面`的功能, 目前android手机使用频率很高
桌面上,几乎都是小程序
至于为什么,简单说不清楚了,

11
date/2022-11/think.md Normal file
View File

@@ -0,0 +1,11 @@
rss. [freshrdss]
wordpress [english]
---
keep
digital nomad
---

View File

@@ -0,0 +1,19 @@
wordpress
跨境电商-硬件
英语/技术
keep
wordpress sns rss
nethunter
ios
dingtalk
scommerce

63
fastapi/慕课fastapi.md Normal file
View File

@@ -0,0 +1,63 @@
异步
高性能
自动生成swaager文档 [调试]
官网文档友好
uvicorn是python库,pip包, 不能在linux直接安装 [异步web服务部署]
gunicorn是linux库
使用虚拟环境
生成requirement.txt
打包exe
docker部署
## pydantic
https://docs.pydantic.dev/
<img src="file:///Users/eric/Documents/marktext/images/c672dab3f89aeffd45b6290f1885d5bcb9fa4f2f.png" title="" alt="Screen Shot 2022-12-14 at 09.12.08.png" width="540">
`python解包` user=User(**XXX) 类似于 js的结构赋值
dict与obj的区别
vscode python开插件
数据库操作orm sqlalchemy
![Screen Shot 2022-12-14 at 09.18.40.png](/Users/eric/Documents/marktext/images/81d743fc638bdf36deb3829680cf523ff1e1febd.png)
路径参数/查询参数/请求体
终端启动命令
![Screen Shot 2022-12-14 at 09.25.34.png](/Users/eric/Documents/marktext/images/df5cda3b9ab14fb62674851490b8d6b3f0d88e91.png)
也可以在程序内启动
![Screen Shot 2022-12-14 at 09.38.52.png](/Users/eric/Documents/marktext/images/ab9cc13c0a827c617e0eee658d8b7b33d23242d1.png)
异步async await
大型应用目录结构设计

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

25
life/放假安排.md Normal file
View File

@@ -0,0 +1,25 @@
## 小程序
- 头像转动漫 [软文]
- exif元信息 [软文]
- 同城*户外*爬山 [小红书自动化bot, 开发板]
- 相亲小程序 [公司] [广告投放]
- 蓝牙小程序 [智能浇花][二次开发]
---
## 证书
- BEC中级
- 驾照
---

0
note/.md Normal file
View File

9
note/2022-12-08.md Normal file
View File

@@ -0,0 +1,9 @@
健身
学车
微信小程序
硬件开发
公众号/视频号

11
note/life.md Normal file
View File

@@ -0,0 +1,11 @@
keep / 买衣服/ 造型
apple硬件
rss (sns) => wordpress
raspberry pi [pyton linux]
girl [wechat]/ 车子/房子
dingtalk

5
note/think.md Normal file
View File

@@ -0,0 +1,5 @@
keep /买衣服
rss/wordpress
raspberry pi [ecommerce] /sns => python| linux [硬件]

13
work/10.31.md Normal file
View File

@@ -0,0 +1,13 @@
```inboundOrderTypes
inboundOrderTypes 入库已审核
```
inboundOrderTypes: [2, 3]