DAD._table 改为 MOM._table
This commit is contained in:
parent
2e1bbe2904
commit
4e2a4b35db
@ -9,11 +9,12 @@ const DAD = module.exports = function Action (prop) {
|
|||||||
this.type = this.constructor.name
|
this.type = this.constructor.name
|
||||||
}
|
}
|
||||||
DAD.__proto__ = Ling
|
DAD.__proto__ = Ling
|
||||||
DAD._table = DAD.name
|
|
||||||
const MOM = DAD.prototype
|
const MOM = DAD.prototype
|
||||||
MOM.__proto__ = Ling.prototype
|
MOM.__proto__ = Ling.prototype
|
||||||
|
|
||||||
/** ****************** Shared by instances ********************/
|
/** ****************** Shared by instances ********************/
|
||||||
|
MOM._table = DAD.name
|
||||||
MOM._tablekey = 'hash'
|
MOM._tablekey = 'hash'
|
||||||
MOM._model = {
|
MOM._model = {
|
||||||
hash: { default: undefined, sqlite: 'TEXT UNIQUE', mysql: 'VARCHAR(64) PRIMARY KEY' }, // 不纳入签名和哈希
|
hash: { default: undefined, sqlite: 'TEXT UNIQUE', mysql: 'VARCHAR(64) PRIMARY KEY' }, // 不纳入签名和哈希
|
||||||
|
@ -8,9 +8,10 @@ const DAD = module.exports = function ActionMultisig (prop) {
|
|||||||
this.type = this.constructor.name
|
this.type = this.constructor.name
|
||||||
}
|
}
|
||||||
DAD.__proto__ = Action
|
DAD.__proto__ = Action
|
||||||
// DAD._table=DAD.name // 注释掉,从而继承父类Action的数据库表格名
|
|
||||||
const MOM = DAD.prototype
|
const MOM = DAD.prototype
|
||||||
MOM.__proto__ = Action.prototype
|
MOM.__proto__ = Action.prototype
|
||||||
|
// MOM._table=DAD.name // 注释掉,从而继承父类Action的数据库表格名
|
||||||
|
|
||||||
MOM.signMe = function (seckey) { // 由前端调用,后台不该进行签名
|
MOM.signMe = function (seckey) { // 由前端调用,后台不该进行签名
|
||||||
let json = this.getJson({ exclude: ['hash', 'blockHash', 'actorSignature', 'json'] }) // 是前端用户发起事务时签字,这时候还不知道进入哪个区块,所以不能计入blockHash
|
let json = this.getJson({ exclude: ['hash', 'blockHash', 'actorSignature', 'json'] }) // 是前端用户发起事务时签字,这时候还不知道进入哪个区块,所以不能计入blockHash
|
||||||
|
@ -6,6 +6,7 @@ const DAD = module.exports = function ActionRegisterChain (prop) {
|
|||||||
this.type = this.constructor.name
|
this.type = this.constructor.name
|
||||||
}
|
}
|
||||||
DAD.__proto__ = Action
|
DAD.__proto__ = Action
|
||||||
|
|
||||||
const MOM = DAD.prototype
|
const MOM = DAD.prototype
|
||||||
MOM.__proto__ = Action.prototype
|
MOM.__proto__ = Action.prototype
|
||||||
|
|
||||||
|
@ -8,9 +8,10 @@ const DAD = module.exports = function ActionStore (prop) {
|
|||||||
this.type = this.constructor.name
|
this.type = this.constructor.name
|
||||||
}
|
}
|
||||||
DAD.__proto__ = Action
|
DAD.__proto__ = Action
|
||||||
// DAD._table=DAD.name // 注释掉,从而继承父类Action的数据库表格名
|
|
||||||
const MOM = DAD.prototype
|
const MOM = DAD.prototype
|
||||||
MOM.__proto__ = Action.prototype
|
MOM.__proto__ = Action.prototype
|
||||||
|
// MOM._table=DAD.name // 注释掉,从而继承父类Action的数据库表格名
|
||||||
|
|
||||||
/** ****************** Shared by instances ********************/
|
/** ****************** Shared by instances ********************/
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ const DAD = module.exports = function ActionTransfer (prop) {
|
|||||||
this.type = this.constructor.name
|
this.type = this.constructor.name
|
||||||
}
|
}
|
||||||
DAD.__proto__ = Action
|
DAD.__proto__ = Action
|
||||||
|
|
||||||
const MOM = DAD.prototype
|
const MOM = DAD.prototype
|
||||||
MOM.__proto__ = Action.prototype
|
MOM.__proto__ = Action.prototype
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "tic.action",
|
"name": "tic.action",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"so.ling": "git+https://git.faronear.org/so/so.ling#20190714_release_passtoken",
|
"so.ling": "git+https://git.faronear.org/so/so.ling#20200210_MOM._table",
|
||||||
"tic.crypto": "git+https://git.faronear.org/tic/tic.crypto#20190109_preview"
|
"tic.crypto": "git+https://git.faronear.org/tic/tic.crypto#20190109_preview"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
|
Loading…
Reference in New Issue
Block a user