1
This commit is contained in:
parent
97799c70f9
commit
efd3fea4d8
@ -1,5 +1,12 @@
|
|||||||
function init() {
|
const tasks = {};
|
||||||
|
|
||||||
|
function add(name) {
|
||||||
|
tasks[name] = require(`./${name}`);
|
||||||
|
tasks[name].init();
|
||||||
|
}
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
add('fragment');
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.init = init;
|
exports.init = init;
|
||||||
|
@ -1,5 +1,25 @@
|
|||||||
|
const app = require('j7/app');
|
||||||
|
const utils = require('j7/utils');
|
||||||
|
|
||||||
|
const YESTERDAY_HERO_NUM = 1000;
|
||||||
|
const YESTERDAY_GUN_NUM = 1000;
|
||||||
|
|
||||||
class Fragment {
|
class Fragment {
|
||||||
|
|
||||||
|
async start() {
|
||||||
|
while (true) {
|
||||||
|
const nowTime = utils.getUtcTime();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async alloc() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Fragment;
|
function init() {
|
||||||
|
(new Fragment()).start();
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.init = init;
|
||||||
|
@ -611,7 +611,8 @@ CREATE TABLE `t_fragment_pool` (
|
|||||||
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
`fragment_id` int(11) NOT NULL DEFAULT '0' COMMENT '碎片id',
|
`fragment_id` int(11) NOT NULL DEFAULT '0' COMMENT '碎片id',
|
||||||
`fragment_type` int(11) NOT NULL DEFAULT '0' COMMENT '碎片类型 0:英雄 1:武器',
|
`fragment_type` int(11) NOT NULL DEFAULT '0' COMMENT '碎片类型 0:英雄 1:武器',
|
||||||
`fragment_num` int(11) NOT NULL DEFAULT '0' COMMENT '碎片数量',
|
`fragment_num` int(11) NOT NULL DEFAULT '0' COMMENT '剩余碎片数量',
|
||||||
|
`alloc_num` int(11) NOT NULL DEFAULT '0' COMMENT '分配的碎片数量',
|
||||||
`alloc_time` int(11) NOT NULL DEFAULT '0' COMMENT '分配时间',
|
`alloc_time` int(11) NOT NULL DEFAULT '0' COMMENT '分配时间',
|
||||||
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
2
third_party/j7
vendored
2
third_party/j7
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 60793c7b53c719d4b50482a88d25b2b18aa51069
|
Subproject commit 6a6a58c94497cc008ca467942f99576e1385d9ad
|
Loading…
x
Reference in New Issue
Block a user