This commit is contained in:
Jay
2017-04-10 10:03:43 +08:00
parent 0fdcaf3bfc
commit 108e7db8f3
3 changed files with 274 additions and 273 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ router
res.db.query(q, p, (err, row) => {
let pros = [];
if (!(err || row.length == 0 || row[0].c > 0)) {
let q = "insert into ??.?? values (null, ?, '', unix_timestamp(), unix_timestamp())";
let q = "insert into ??.?? (`mac`, `name`, `cuser`, `muser`, `ctime`, `mtime`) values (?, '', 'API', 'API', unix_timestamp(), unix_timestamp())";
let p = [config.db.db9, 'wristband', arr.mac];
pros.push(tool.promiseQuery(res, q, p, 'q1'));
}