Commit a790172c authored by 智勇's avatar 智勇

EOS错误捕获

parent b46898be
...@@ -319,8 +319,17 @@ exports.get_name_space = async function () { ...@@ -319,8 +319,17 @@ exports.get_name_space = async function () {
res = JSON.parse(res); res = JSON.parse(res);
} }
let db = this.mongo("NameSpaceGroup"); let db = this.mongo("NameSpaceGroup");
await formatListData(res, db); try {
this.body = res.details.instances; await formatListData(res, db);
this.body = res.details.instances;
} catch (error) {
this.body = {
code: "0001",
msg: "EOS获取数据问题",
detail: JSON.stringify(error)
}
}
return return
} }
exports.get_name_space.__method__ = 'get'; exports.get_name_space.__method__ = 'get';
......
...@@ -453,7 +453,7 @@ exports.createID = async function () { ...@@ -453,7 +453,7 @@ exports.createID = async function () {
for (let ii = 0; ii < cnt; ii++) { for (let ii = 0; ii < cnt; ii++) {
let t = RandomCreateID(province_id) let t = RandomCreateID(province_id)
let js_info = getInfo(t, bank) let js_info = getInfo(t, bank)
// console.log(111, js_info) console.log(111, js_info)
let java_info let java_info
do { do {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment