摘要:
## Postman 脚本处理发送参数 pre-request 发送请求前的sign操作 let openDomain = pm.environment.get("openApiDomain"); let url = openDomain + "/test/open_sign"; let reque 阅读全文
摘要:
IsSecure() func 失效问题 nginx部署好https后,this.Ctx.Input.IsSecure() 返回 false的 解决方法,nginx的conf中需要加入 proxy_set_header X-Forwarded-Proto $scheme; location / { 阅读全文
摘要:
--练手实操-- 新建git项目 新建beego项目 bee new shorturl_on_beego 预先构想 描述 实现将长链接转换为短链接的功能 使用MySQL记录数据 功能划分 接口1 长链接转短链接 接口2 短链接反查长链接 功能3 访问短链接,跳转至长链接 代码实现 引入数据库 定义数 阅读全文
摘要:
##概念 消息队列概念 队列结构的中间件 消息放入后,不需要立即处理 由订阅者/消费者按顺序处理 业务系统入队数据至消息队列,队列处理系统依次出队数据,进行处理 应用场景 冗余 解耦 流量削峰(秒杀,定时开售) 异步通信 扩展性(新增模块只需订阅该消息队列) 排序保证 优缺点 Mysql:可靠性高、 阅读全文
摘要:
访问路径 结果 http://localhost:8080/ Hello from / http://localhost:8080/home Same as app.Handle("GET", "/", [...]) http://localhost:8080/u/some/path 😒tring 阅读全文
摘要:
intervention/image https://github.com/Intervention/image 图片处理 reliese/laravel https://github.com/reliese/laravel models 生成器 barryvdh/laravel-ide-helpe 阅读全文
摘要:
服务容器 Laravel 中的容器 绑定 由 服务提供者进行 $this->app->bind('HelpSpot\Api', function($app){ return new HelpSpot\API($app->make('HttpClient')); }); $this->app->sin 阅读全文