This commit is contained in:
qiaozha 2020-02-17 09:47:02 +08:00
Родитель a7dcd08c5d
Коммит 2748e6c5d9
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -153,10 +153,10 @@ function GetCommandBody(model: CodeModelAz, required: boolean, needUpdate: boole
if(oriParam == body) {
if(param['pathToProperty']?.length == 1) {
let pathParam = param['pathToProperty'][0];
access += ".setdefault('" + pathParam.language['python'].name + "', {})";
access += "['" + model.MethodParameter_Name + "'] = ";
access += `.setdefault(' + ${pathParam.language['python'].name} + ', {})`;
access += `[' + ${model.MethodParameter_Name} + '] = `;
} else {
access += "['" + model.MethodParameter_Name + "'] = ";
access += `[' + ${model.MethodParameter_Name} + '] = `;
}
if (model.MethodParameter_IsList) {
if (model.MethodParameter_Type != SchemaType.Dictionary) {