
解决 the “listen … http2” directive is deprecated
- 2024-12-27
- 后端
错误 nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead 解决方法 检查现有配置形式如: server { listen443 ssl http2; 修复:nginx >= 1...

物流系统设计之《物流状态与轨迹》
- 2022-12-11
- 后端
物流运单签收状态(state) 默认状态下,在推送时我们提供了ischeck字段表示快递单是否签收(含正常签收,退回签收两种情况),通过state字段提供签收的具体状态,state具体如下: 物流状态值 ...

Nginx配置WebSocket【同时支持WSS与WS】
- 2022-09-26
- 后端
SSL、WSS、NGINX关系 wss协议实际是websocket+SSL,就是在websocket协议上加入SSL层,类似https(http+SSL)。利用nginx代理wss【通讯原理及流程】客户端发起wss连接连到nginxnginx将wss协议的数据转换成ws协议...

复杂数据源中小区/学校/区域信息的归一化探讨
背景 小区是租房业务中很重要的信息,它能够反映房源的位置和品质。对租客而言,能否浏览到准确的小区信息是高效找房的关键。因此,收集和展示准确的小区信息是提高用户找房效率的重要方面。为了获得全面的小...

Dart/Flutter防抖与节流
背景 在一些计算较为复杂、操作较为耗时或者操作为引起页面重绘的场景,如果事件触发的频率毫无限制,除了带来性能上的负担,还会导致糟糕的用户体验。如:根据输入框输入的内容向服务端查询相关文章,用户多...

分销系统数据库设计篇
- 2022-05-10
- 后端
分销项目,少不了分销者关联关系、订单关联、分销收益计算,这也是基础核心的部分。不同的需求会有不同的设计标准和要求,下面是一份分销系统核心数据库设计的示例可供参考: 分销用户表 CREATE TABLE `fe...

Flutter/Dart循环 for、 while 、do..while 、break、continue
++、-- 表示自增、自减,运算规则和java类似在赋值运算里:如果++、--写在前面,表示先运算,后赋值如果++、--写在后面,表示先赋值,后运算while 、do..while区别:do..while无论条件是否成立,首先执行一次bre...
正则表达式使用转义,特殊字符
正如我们所看到的,一个反斜杠 "\" 是用来表示匹配字符类的。所以它是一个特殊字符。 还存在其它的特殊字符,这些字符在正则表达式中有特殊的...

苹果CMS V10 API接口相关
- 2019-12-09
- 后端
苹果CMS V10 内置API接口 网上查了一下没啥结果,都是采集和第三方的。所以看了下源码,提取出来的内内置接口如下,比较少,而且缺乏一些字段,还是要自己写才行,供参考。 影片接口 url:/api.php...

解决AttributeError: module ‘enum’ has no attribute ‘IntFlag’
- 2019-12-01
- 后端
项目pip3 install -r requirements.txt的时候报错: AttributeError: module 'enum' has no attribute 'IntFlag' 检查代码发现没有问题,只能是环境或包的问题。 网上的说法是因为enum34这个包 ,...