mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 02:20:24 +08:00
优化代码/实现基础的实名认证功能
This commit is contained in:
@@ -162,7 +162,7 @@ func (this *UserNodeDAO) CreateUserNode(tx *dbs.Tx, name string, description str
|
||||
return
|
||||
}
|
||||
|
||||
op := NewUserNodeOperator()
|
||||
var op = NewUserNodeOperator()
|
||||
op.IsOn = isOn
|
||||
op.UniqueId = uniqueId
|
||||
op.Secret = secret
|
||||
@@ -194,7 +194,7 @@ func (this *UserNodeDAO) UpdateUserNode(tx *dbs.Tx, nodeId int64, name string, d
|
||||
return errors.New("invalid nodeId")
|
||||
}
|
||||
|
||||
op := NewUserNodeOperator()
|
||||
var op = NewUserNodeOperator()
|
||||
op.Id = nodeId
|
||||
op.Name = name
|
||||
op.Description = description
|
||||
|
||||
Reference in New Issue
Block a user