json with base64
This commit is contained in:
parent
99ef4380c7
commit
0d64f93c39
@ -45,8 +45,8 @@ field_val(V) when is_float(V) ->
|
||||
field_val(V) when is_binary(V) ->
|
||||
<<$", V/binary, $">>;
|
||||
field_val(V) when is_list(V); is_map(V) ->
|
||||
S = jiffy:encode(V, [force_utf8]),
|
||||
<<$", S/binary, $">>;
|
||||
S = base64:encode(iolist_to_binary(jiffy:encode(V, [force_utf8]))),
|
||||
<<$", "base64:", S/binary, $">>;
|
||||
field_val(true) ->
|
||||
<<"true">>;
|
||||
field_val(false) ->
|
||||
|
||||
3
docs/router.md
Normal file
3
docs/router.md
Normal file
@ -0,0 +1,3 @@
|
||||
# 数据路由设计文档
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user