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

File diff suppressed because it is too large Load Diff

View File

@ -63,7 +63,7 @@
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1145);
/******/ return __webpack_require__(__webpack_require__.s = 1147);
/******/ })
/************************************************************************/
/******/ ([
@ -62129,7 +62129,7 @@ var _i18next2 = _interopRequireDefault(_i18next);
var _semanticUiReact = __webpack_require__(8);
var _Form = __webpack_require__(1090);
var _Form = __webpack_require__(1092);
var _Form2 = _interopRequireDefault(_Form);
@ -62327,7 +62327,9 @@ exports.default = (0, _reactRedux.connect)()(Root);
/* 1087 */,
/* 1088 */,
/* 1089 */,
/* 1090 */
/* 1090 */,
/* 1091 */,
/* 1092 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@ -62383,8 +62385,6 @@ var loginForm = function loginForm(_ref) {
exports.default = loginForm;
/***/ }),
/* 1091 */,
/* 1092 */,
/* 1093 */,
/* 1094 */,
/* 1095 */,
@ -62437,7 +62437,9 @@ exports.default = loginForm;
/* 1142 */,
/* 1143 */,
/* 1144 */,
/* 1145 */
/* 1145 */,
/* 1146 */,
/* 1147 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";

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'));
}