把大多数ticc方法的参数类型统一为 { ... } 对象

This commit is contained in:
luk.lu
2022-08-03 16:30:21 +08:00
parent 94152ec736
commit bbba2589d5
2 changed files with 3 additions and 2 deletions

2
tic.js
View File

@@ -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,