update template code

This commit is contained in:
AceDataCloud committed 2023-03-02 23:04:23 +08:00
1 parent ba74345be1
commit df76f2b35a
8 files changed
+78 -21

No files matched your search

+2 -2
View File
@@ -2,12 +2,12 @@ const options = {
method: '{{{method}}}',
headers: {
{{#headers}}
'{{{key}}}': '{{{value}}}'{{^last}},{{/last}}
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
{{/headers}}
},
body: JSON.stringify({
{{#body}}
{{{key}}}: '{{{value}}}'{{^last}},{{/last}}
'{{{key}}}': {{{value}}}{{^last}},{{/last}}
{{/body}}
})
};