把大多数ticc方法的参数类型统一为 { ... } 对象
This commit is contained in:
2
tic.js
2
tic.js
@@ -8,7 +8,7 @@ const TIC_NODE = require('./netConfig').TIC_NODE
|
||||
|
||||
class TIC {
|
||||
constructor (seckey, option = {}) {
|
||||
if (!seckey || !ticc.is_seckey(seckey)) throw 'ERROR:Invalid Seckey'
|
||||
if (!seckey || !ticc.is_seckey({ seckey })) throw 'ERROR:Invalid Seckey'
|
||||
Object.defineProperties(this, {
|
||||
seckey: {
|
||||
value: seckey,
|
||||
|
||||
Reference in New Issue
Block a user