Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Jun 9, 2024
1 parent 214f58e commit 2657db6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ var pool = mysql.createPool({
user: process.env.mysqluser,
password: process.env.mysqlpassword,
database: process.env.mysqldatabase,
debug: true
//debug: true
});


//防止注入:'SELECT * FROM ow_Users WHERE ?', WHERE
exports.qww = function query_with_w(SQL, W, callback) {
pool.getConnection(function (err, connection) {
console.log(err)
//console.log(err)
if (err) return callback(err,'');

// Use the connection
Expand All @@ -28,7 +28,7 @@ exports.qww = function query_with_w(SQL, W, callback) {
//正常操作
exports.query = function query(SQL, callback) {
pool.getConnection(function (err, connection) {
console.log(err)
//console.log(err)
if (err) return callback(err,'');

// Use the connection
Expand Down

0 comments on commit 2657db6

Please sign in to comment.