mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-08-24 16:18:38 +08:00
优化 SaResult 注释
This commit is contained in:
parent
62580e7c09
commit
e7da43baa6
@ -174,6 +174,13 @@ public class SaResult extends LinkedHashMap<String, Object> implements Serializa
|
||||
+ "}";
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换 value 值:
|
||||
* 如果 value 值属于 String 类型,则在前后补上引号
|
||||
* 如果 value 值属于其它类型,则原样返回
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
private String transValue(Object value) {
|
||||
if(value instanceof String) {
|
||||
return "\"" + value + "\"";
|
||||
|
Loading…
Reference in New Issue
Block a user