feat(core): 将Mixly.MJSON调整为Mixly.MJson
This commit is contained in:
@@ -4,7 +4,7 @@ goog.require('path');
|
||||
goog.require('Mixly.Env');
|
||||
goog.require('Mixly.FS');
|
||||
goog.require('Mixly.Debug');
|
||||
goog.require('Mixly.MJSON');
|
||||
goog.require('Mixly.MJson');
|
||||
goog.require('Mixly.Electron.Ampy');
|
||||
goog.provide('Mixly.Electron.AmpyFS');
|
||||
|
||||
@@ -12,7 +12,7 @@ const {
|
||||
Env,
|
||||
FS,
|
||||
Debug,
|
||||
MJSON,
|
||||
MJson,
|
||||
Electron
|
||||
} = Mixly;
|
||||
const { Ampy } = Electron;
|
||||
@@ -136,7 +136,7 @@ class AmpyFS extends FS {
|
||||
if (!dirs[i]) {
|
||||
continue;
|
||||
}
|
||||
stdout.push(MJSON.parse(dirs[i].replaceAll('\'', '"')));
|
||||
stdout.push(MJson.parse(dirs[i].replaceAll('\'', '"')));
|
||||
}
|
||||
} catch (e) {
|
||||
error = e;
|
||||
|
||||
@@ -2,13 +2,13 @@ goog.loadJs('electron', () => {
|
||||
|
||||
goog.require('path');
|
||||
goog.require('Mixly.Env');
|
||||
goog.require('Mixly.MJSON');
|
||||
goog.require('Mixly.MJson');
|
||||
goog.require('Mixly.Electron');
|
||||
goog.provide('Mixly.Electron.CloudDownload');
|
||||
|
||||
const {
|
||||
Env,
|
||||
MJSON,
|
||||
MJson,
|
||||
Electron
|
||||
} = Mixly;
|
||||
|
||||
@@ -29,7 +29,7 @@ CloudDownload.getJson = (url, downloadDir, endFunc) => {
|
||||
let jsonObj = null;
|
||||
if (fs_plus.isFileSync(message[1])) {
|
||||
let data = fs.readFileSync(message[1], 'utf-8');
|
||||
jsonObj = MJSON.parse(data);
|
||||
jsonObj = MJson.parse(data);
|
||||
}
|
||||
if (jsonObj) {
|
||||
return jsonObj;
|
||||
|
||||
Reference in New Issue
Block a user