25 changed files with 1350 additions and 4966 deletions
@ -0,0 +1,706 @@ |
|||
[2022-02-24T15:03:25.488] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:03:25.551] [DEBUG] SQL - Executing (default): INSERT INTO `Users` (`id`,`username`,`password`,`email`,`createdAt`,`updatedAt`) VALUES (NULL,$1,$2,$3,$4,$5); { |
|||
plain: false, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
hooks: true, |
|||
validate: true, |
|||
fields: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
defaultFields: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
returning: true, |
|||
hasTrigger: undefined, |
|||
dialect: 'sqlite', |
|||
dialectModule: null, |
|||
dialectModulePath: null, |
|||
protocol: 'tcp', |
|||
define: {}, |
|||
query: {}, |
|||
sync: {}, |
|||
timezone: '+00:00', |
|||
clientMinMessages: 'warning', |
|||
standardConformingStrings: true, |
|||
omitNull: false, |
|||
native: false, |
|||
replication: false, |
|||
ssl: undefined, |
|||
pool: {}, |
|||
quoteIdentifiers: true, |
|||
retry: { max: 5, match: [ 'SQLITE_BUSY: database is locked' ] }, |
|||
transactionType: 'DEFERRED', |
|||
isolationLevel: null, |
|||
databaseVersion: 0, |
|||
typeValidation: false, |
|||
benchmark: false, |
|||
minifyAliases: false, |
|||
logQueryParameters: false, |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
type: 'INSERT', |
|||
instance: User { |
|||
dataValues: { |
|||
id: null, |
|||
username: '1549469775@qq.com', |
|||
password: '$2b$10$7HW9.t8ElTrincTuFajI5ueyVgIRvzEGSM5t81CXy1ka5IpAs8wNO', |
|||
email: '1549469775@qq.com', |
|||
updatedAt: 2022-02-24T07:03:25.548Z, |
|||
createdAt: 2022-02-24T07:03:25.548Z |
|||
}, |
|||
_previousDataValues: { username: undefined, password: undefined, email: undefined }, |
|||
_changed: Set(3) { 'username', 'password', 'email' }, |
|||
_options: { |
|||
isNewRecord: true, |
|||
_schema: null, |
|||
_schemaDelimiter: '', |
|||
attributes: undefined, |
|||
include: undefined, |
|||
raw: undefined, |
|||
silent: undefined |
|||
}, |
|||
isNewRecord: true |
|||
}, |
|||
model: User, |
|||
bind: [ |
|||
'1549469775@qq.com', |
|||
'$2b$10$7HW9.t8ElTrincTuFajI5ueyVgIRvzEGSM5t81CXy1ka5IpAs8wNO', |
|||
'1549469775@qq.com', |
|||
'2022-02-24 07:03:25.548 +00:00', |
|||
'2022-02-24 07:03:25.548 +00:00' |
|||
], |
|||
uuid: 'default', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:08:04.488] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:10:30.146] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:12:48.080] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:15:26.413] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:15:46.129] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:15:46.183] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:16:28.160] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:16:40.344] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:16:40.412] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:17:00.415] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:17:00.511] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:17:04.352] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:18:55.465] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:18:55.524] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:19:27.570] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:19:38.463] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:19:40.096] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:20:17.332] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:20:45.832] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:20:45.916] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:20:57.434] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:22:56.788] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:31:15.989] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:32:28.477] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:32:34.923] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:32:34.925] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:32:34.926] [DEBUG] SQL - Executing (default): DELETE FROM `Users` WHERE `id` = 1 { |
|||
plain: false, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
type: 'DELETE', |
|||
limit: null, |
|||
hooks: true, |
|||
force: false, |
|||
instance: User { |
|||
dataValues: { |
|||
id: 1, |
|||
username: 'xieyaxin', |
|||
password: '$2b$10$GqErvSdKZYJECxlABid0.eapL3wzZ/YRASWBjxkBGDFMlGRISCyyy', |
|||
email: '1549469775@qq.com', |
|||
createdAt: 2022-02-24T06:33:04.439Z, |
|||
updatedAt: 2022-02-24T06:33:04.439Z |
|||
}, |
|||
_previousDataValues: { |
|||
id: 1, |
|||
username: 'xieyaxin', |
|||
password: '$2b$10$GqErvSdKZYJECxlABid0.eapL3wzZ/YRASWBjxkBGDFMlGRISCyyy', |
|||
email: '1549469775@qq.com', |
|||
createdAt: 2022-02-24T06:33:04.439Z, |
|||
updatedAt: 2022-02-24T06:33:04.439Z |
|||
}, |
|||
_changed: Set(0) {}, |
|||
_options: { |
|||
isNewRecord: false, |
|||
_schema: null, |
|||
_schemaDelimiter: '', |
|||
raw: true, |
|||
attributes: [Array] |
|||
}, |
|||
isNewRecord: false |
|||
}, |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T15:54:57.732] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T16:15:54.738] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T16:16:00.842] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T16:16:10.012] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = '1549469775@qq.com' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = '1549469775@qq.com'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T16:16:20.748] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T16:16:28.797] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`id` = 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: '`User`.`id` = 1', |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
|||
[2022-02-24T16:16:38.617] [DEBUG] SQL - Executing (default): SELECT `id`, `username`, `password`, `email`, `createdAt`, `updatedAt` FROM `Users` AS `User` WHERE `User`.`username` = 'xieyaxin' LIMIT 1; { |
|||
plain: true, |
|||
raw: false, |
|||
logging: [Function: bound ], |
|||
where: "`User`.`username` = 'xieyaxin'", |
|||
limit: 1, |
|||
hooks: true, |
|||
rejectOnEmpty: false, |
|||
originalAttributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
attributes: [ 'id', 'username', 'password', 'email', 'createdAt', 'updatedAt' ], |
|||
tableNames: [ 'Users' ], |
|||
type: 'SELECT', |
|||
model: User, |
|||
uuid: 'default', |
|||
storage: 'D:\\1XYX\\demo\\hapi-demo\\source\\db\\data.db', |
|||
inMemory: 0, |
|||
readWriteMode: 6 |
|||
} |
@ -0,0 +1,3 @@ |
|||
[2022-02-24T14:57:07.335] [DEBUG] Site - 服务器启动 |
|||
[2022-02-24T14:57:23.685] [DEBUG] Site - 服务器启动 |
|||
[2022-02-24T15:00:56.695] [DEBUG] Site - 服务器启动 |
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 605 KiB |
After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
@ -0,0 +1,37 @@ |
|||
import path from "path"; |
|||
|
|||
export default function () { |
|||
return { |
|||
appenders: { |
|||
file: { |
|||
type: "file", |
|||
filename: path.resolve(__dirname, "../", "./log", "./Site.log"), |
|||
}, |
|||
SQL: { |
|||
type: "file", |
|||
filename: path.resolve(__dirname, "../", "./log", "./SQL.log"), |
|||
}, |
|||
console: { |
|||
type: "console", |
|||
}, |
|||
}, |
|||
categories: { |
|||
default: { |
|||
appenders: ["console"], |
|||
level: "all", |
|||
}, |
|||
HAPI: { |
|||
appenders: ["console"], |
|||
level: "all", |
|||
}, |
|||
Site: { |
|||
appenders: ["file", "console"], |
|||
level: "debug", |
|||
}, |
|||
SQL: { |
|||
appenders: ["SQL"], |
|||
level: "debug", |
|||
}, |
|||
}, |
|||
}; |
|||
} |
@ -1,5 +1,21 @@ |
|||
require("dotenv").config(); |
|||
import { configure, getLogger } from "log4js"; |
|||
import log4jsConfig from "./log4js_config"; |
|||
|
|||
configure(log4jsConfig()); |
|||
const loggerSite = getLogger("Site"); |
|||
const loggerSQL = getLogger("SQL"); |
|||
const logger = getLogger("HAPI"); |
|||
|
|||
loggerSite.level = "debug"; |
|||
loggerSQL.level = "debug"; |
|||
|
|||
global.logger = logger; |
|||
global.loggerSite = loggerSite; |
|||
global.loggerSQL = loggerSQL; |
|||
|
|||
import { run } from "./run"; |
|||
|
|||
run() |
|||
run().then((server) => { |
|||
global.server = server; |
|||
}); |
|||
|
@ -1,7 +0,0 @@ |
|||
|
|||
|
|||
export default class { |
|||
wxinit(req,h){ |
|||
// const {subgbat÷}÷
|
|||
} |
|||
} |
@ -1,19 +1,20 @@ |
|||
所有路由路径: |
|||
/api 该路由需要权限 |
|||
/api/user/register 该路由不需要权限 |
|||
/api/user/login 该路由不需要权限 |
|||
/api/user/del 该路由需要权限 |
|||
/api/user/userinfo 该路由需要权限 |
|||
/api/wx/wxinit 该路由需要权限 |
|||
/color 该路由不需要权限 |
|||
/color/add 该路由不需要权限 |
|||
/color/all_color 该路由不需要权限 |
|||
/demo/{path*} 该路由不需要权限 |
|||
/demo 该路由不需要权限 |
|||
/demo/upload 该路由不需要权限 |
|||
/index/color 该路由不需要权限 |
|||
/{path*} 该路由不需要权限 |
|||
/ 该路由需要权限 |
|||
/login 该路由不需要权限 |
|||
/login 该路由不需要权限 |
|||
/about 该路由需要权限 |
|||
需要权限: GET /api |
|||
不需权限: POST /api/user/register |
|||
需要权限: POST /api/user/logout |
|||
不需权限: POST /api/user/login |
|||
需要权限: DELETE /api/user/del |
|||
需要权限: GET /api/user/userinfo |
|||
需要权限: GET /api/wx/wxinit |
|||
不需权限: GET /color |
|||
不需权限: POST /color/add |
|||
不需权限: GET /color/all_color |
|||
不需权限: GET /demo/{path*} |
|||
不需权限: GET /demo |
|||
不需权限: POST /demo/upload |
|||
不需权限: GET /index/color |
|||
不需权限: GET /{path*} |
|||
需要权限: GET / |
|||
不需权限: GET /login |
|||
不需权限: POST /login |
|||
需要权限: GET /about |
@ -0,0 +1,10 @@ |
|||
import * as Joi from "joi"; |
|||
|
|||
export const UserSchema = Joi.object({ |
|||
username: Joi.string().alphanum().min(6).max(35), |
|||
password: Joi.string().pattern(new RegExp("^[a-zA-Z0-9]{3,30}$")).required(), |
|||
email: Joi.string().email({ |
|||
minDomainSegments: 2, |
|||
tlds: { allow: ["com", "net"] }, |
|||
}), |
|||
}).or("username", "email"); |
@ -1 +1,9 @@ |
|||
import { Logger } from "log4js"; |
|||
import { Server } from "@hapi/hapi"; |
|||
|
|||
declare global { |
|||
var server: Server; |
|||
var logger: Logger; |
|||
var loggerSite: Logger; |
|||
var loggerSQL: Logger; |
|||
} |
|||
|
Loading…
Reference in new issue