🗒️saToken ApiFox Java 签名特殊字符处理

type
status
slug
date
tags
summary
category
password
icon
如果直接传递特殊字符,有些会被转义,比如+,到后端就变成空格了

A 简单

传递签名使用未编码数据
ApiFox 对参数值内容进行编码encodeURIComponent

B 麻烦

  1. API Fox 对原文进行编码encodeURIComponent,编码后计算 MD5
  1. Sa-Token 重写获取 map 方法,对转义后结果编码然后 MD5(使用hutool URLUtil.encodeAll)
上一篇
简历模板工具
下一篇
PHP配置跨域支持
Loading...
文章列表
王小扬博客
云原生
Git
Elasticsearch
Apollo
产品
Think
生活技巧
软件开发
计算机网络
CI
DB
设计
缓存
Docker
Node
操作系统
Java
大前端
Nestjs
其他
PHP
AI