摘要: 定义表注释读取使用 users = await User.all().values() field_map = {field.model_field_name: field.description for field in User._meta.fields_map.values()} result 阅读全文
posted @ 2023-12-01 20:42 pearlcity 阅读(16) 评论(0) 推荐(0) 编辑
摘要: usero = toobj({'name': 'sam', 'id': 123})print(json.dumps(usero))obj = 'Company'Class_name = globals()[obj]companyo = await Class_name.filter(id=2).fi 阅读全文
posted @ 2023-11-13 17:42 pearlcity 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 1、不带密码芯片 2、带密码芯片 3、合作方芯片接口定义 阅读全文
posted @ 2023-08-07 12:32 pearlcity 阅读(7) 评论(0) 推荐(0) 编辑
摘要: For configuration menu type "menu" For poweroff type "sudo poweroff" For reboot type "sudo reboot" For http://ip:5001 | 8088(hqplayer) | 19999 |文件共享:a 阅读全文
posted @ 2023-06-14 19:09 pearlcity 阅读(452) 评论(0) 推荐(0) 编辑
摘要: flutter页面之间传值 调用代码: Navigator.push(context, new MaterialPageRoute(builder: (BuildContext context) { return GatewayPage(type: TTGatewayType.g2, wifi: w 阅读全文
posted @ 2023-03-19 14:46 pearlcity 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 参考教程:https://blog.csdn.net/qq_40976321/article/details/121806555一、安装flutter(版本:3.7.7)到目录 tools 下面;1、window的用户直接将下面的添加到环境变量中 PUB_HOSTED_URL=https://pub 阅读全文
posted @ 2023-03-13 00:24 pearlcity 阅读(4665) 评论(0) 推荐(0) 编辑
摘要: 一、nginx # # 小衍2.0 nginx 部署 # 1、生成过渡容器用于复制文件到宿主机 拷贝 /opt/ng 整个目录 nginx.conf已经跟实际目录及文件匹配,如更改目录路径需同时更改nginx.conf文件 2、运行容器:无代理 docker run -itd -e TZ="Asia 阅读全文
posted @ 2023-02-09 22:11 pearlcity 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 一、HQPlayer NAA 1、固件在百度网盘 2、安装教程:http://www.linklab.tech/post/moode7%20x86%20%E5%AE%89%E8%A3%85.html 3、安装后登录用户名和密码:http://www.linklab.tech/post/moode7f 阅读全文
posted @ 2023-01-07 14:14 pearlcity 阅读(1738) 评论(0) 推荐(0) 编辑
摘要: 1、脚本文件运行出错:syntax error: unexpected end of file 1、查看脚本文件格式 vim check_pg_ha.sh打开文件,执行 :set ff,回车,左下角有 fileformat=dos,则为dos格式,必须转换为unix格式才能使用。 2、解决方法 vi 阅读全文
posted @ 2022-12-14 22:33 pearlcity 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1、pip安装 pip3 --no-cache install https://github.com/squeaky-pl/japronto/archive/master.zip 2、小程序登录流程图 阅读全文
posted @ 2022-11-12 00:39 pearlcity 阅读(61) 评论(0) 推荐(0) 编辑