mm_os 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/com/sql/drive.js +3 -3
- package/package.json +1 -1
package/core/com/sql/drive.js
CHANGED
|
@@ -605,7 +605,6 @@ Drive.prototype.get_params = async function(db, fields) {
|
|
|
605
605
|
var list = await db.fields();
|
|
606
606
|
for (var i = 0; i < list.length; i++) {
|
|
607
607
|
var o = list[i];
|
|
608
|
-
console.log("值", o);
|
|
609
608
|
var name = o.name;
|
|
610
609
|
var note = o.note ? o.note.replace(":", ":") : name;
|
|
611
610
|
lt.push({
|
|
@@ -616,10 +615,10 @@ Drive.prototype.get_params = async function(db, fields) {
|
|
|
616
615
|
}
|
|
617
616
|
}
|
|
618
617
|
if (!fields) {
|
|
619
|
-
fields = cg.field_default
|
|
618
|
+
fields = cg.field_default;
|
|
620
619
|
}
|
|
621
620
|
if (fields && fields !== "*") {
|
|
622
|
-
var arr = fields.split(',');
|
|
621
|
+
var arr = fields.replace(/`/g, "").split(',');
|
|
623
622
|
var params = [];
|
|
624
623
|
arr.map((name) => {
|
|
625
624
|
var obj = lt.getObj({
|
|
@@ -632,6 +631,7 @@ Drive.prototype.get_params = async function(db, fields) {
|
|
|
632
631
|
} else {
|
|
633
632
|
params = lt;
|
|
634
633
|
}
|
|
634
|
+
console.log("列表", params, fields);
|
|
635
635
|
return params;
|
|
636
636
|
};
|
|
637
637
|
|