mirror of
https://gitee.com/winc-link/hummingbird.git
synced 2025-04-19 16:02:43 +00:00
fix openapi bug
This commit is contained in:
parent
963d1fa1fc
commit
78b8e351bd
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,6 +6,8 @@
|
||||
vendor
|
||||
logs
|
||||
go.sum
|
||||
hummingbird
|
||||
manifest
|
||||
|
||||
## MacOS
|
||||
.DS_Store
|
||||
|
@ -130,12 +130,12 @@ func (p *deviceApp) SetDeviceProperty(req dtos.OpenApiSetDeviceThingModel) error
|
||||
|
||||
device, err := p.dbClient.DeviceById(req.DeviceId)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = p.dbClient.ProductById(device.ProductId)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
//var findCode bool
|
||||
//
|
||||
|
@ -206,7 +206,7 @@ func (uapp *userApp) CreateTokenDetail(userName string) (*dtos.TokenDetail, erro
|
||||
userID uint = 1
|
||||
err error
|
||||
)
|
||||
td.AccessToken, err = uapp.createToken(userID, userName, td.AtExpires, jwt2.OpenAPIKey)
|
||||
td.AccessToken, err = uapp.createToken(userID, userName, td.AtExpires, jwt2.JwtSignKey)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user