diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml index c63a7c4114..5fd304b61c 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanApiCaseMapper.xml @@ -50,7 +50,7 @@ c.update_user_id, c.num, c.tags, - t.create_user, + c.create_user_id as create_user, a.module_id, a.path, a.protocol, diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml index db964fec41..6054da233d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanScenarioCaseMapper.xml @@ -45,7 +45,7 @@ c. SCHEDULE, c.description, c.tags, - t.create_user, + c.create_user, c.project_id, c.num, c.custom_num, diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue index 6b9d3b7b50..b51deb250a 100644 --- a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue +++ b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue @@ -193,7 +193,7 @@ export default { if (laguanges === "python") { returnScript = 'param=vars["body.${param}"]'; } else { - returnScript = 'var param=vars.get(body.${param}");\n' + + returnScript = 'var param=vars.get("body.${param}");\n' + '//如果对象是多层JSON,需要引入fastjson协助解析:\n' + '// 以"{\"name\":\"user\",\"rows\":[{\"type\":1}]}" 为demo,取rows第1个的type数据:\n' + 'import com.alibaba.fastjson.JSON;\n' +