mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
3.2.0
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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>
|
||||
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user