This commit is contained in:
tanghc
2020-06-17 10:36:22 +08:00
parent f66e2f8891
commit 6406f023db
41 changed files with 1195 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ public class SandboxController {
public SandboxResult proxy(
@RequestParam String appId
, @RequestParam String privateKey
, @RequestParam(required = false) String token
, @RequestParam String method
, @RequestParam String version
, @RequestParam String bizContent
@@ -82,6 +83,10 @@ public class SandboxController {
params.put("timestamp", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
params.put("version", version);
if (StringUtils.isNotBlank(token)) {
params.put("app_auth_token", token);
}
// 业务参数
params.put("biz_content", bizContent);

View File

@@ -117,6 +117,10 @@
<td>PrivateKey</td>
<td><input id="privateKey" type="text" name="privateKey" class="layui-input" /></td>
</tr>
<tr>
<td>Token</td>
<td><input id="token" type="text" name="privateKey" class="layui-input" /></td>
</tr>
</table>
</div>

View File

@@ -43,7 +43,7 @@ function selectItem(docItem, layui) {
function buildHttpMethodOptions(docItem) {
var methodList = docItem.httpMethodList;
var html = []
var html = [];
for (var i = 0; i < methodList.length; i++) {
var method = methodList[i];
html.push('<option value="' + method + '"> ' + method.toUpperCase() + ' </option>');
@@ -118,6 +118,7 @@ function doTest() {
var data = {
appId: $('#appId').val()
, privateKey: $('#privateKey').val()
, token: $('#token').val()
, method: method
, version: version
, httpMethod: $('#httpMethodList').val()