|
@@ -164,8 +164,8 @@ class SystemController extends Controller {
|
|
|
const configJson = await this.app.readConfig(filePath.vendorJson);
|
|
|
const model = configJson.model;
|
|
|
const version = configJson.version;
|
|
|
- const type = configJson.type;
|
|
|
- this.ctx.body = { errcode: 0, errmsg: '', data: { model, version, type } };
|
|
|
+ const profile = configJson.profile;
|
|
|
+ this.ctx.body = { errcode: 0, errmsg: '', data: { model, version, profile } };
|
|
|
} catch (error) {
|
|
|
const body = { errcode: -1032, errmsg: '获取设备信息失败', error };
|
|
|
throw new Error(JSON.stringify(body));
|