Browse Source

Update mysql funcs

HonorLee 7 years ago
parent
commit
cef78bc26c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      system/lib/helper/mysqldb.js

+ 3 - 1
system/lib/helper/mysqldb.js

@@ -83,6 +83,8 @@ var Module = function(table){
                 break;
         }
         queryStr = query.join(' ');
-        console.log(queryStr);
+        MysqlDB.query(queryStr,function(err,result,fields){
+            if(callback && typeof callback === 'function') callback(err,result);
+        })
     }
 };