sfps
This commit is contained in:
@@ -25,14 +25,14 @@ type BaseRetVal struct {
|
||||
Result interface{} `json:"result"`
|
||||
}
|
||||
|
||||
func New(devId int64, devKey string, config ...*platformapi.APIConfig) *API {
|
||||
func New(devId int, devKey string, config ...*platformapi.APIConfig) *API {
|
||||
curConfig := platformapi.DefAPIConfig
|
||||
if len(config) > 0 {
|
||||
curConfig = *config[0]
|
||||
}
|
||||
|
||||
return &API{
|
||||
devId: devId,
|
||||
devId: int64(devId),
|
||||
devKey: devKey,
|
||||
locker: sync.RWMutex{},
|
||||
client: &http.Client{Timeout: curConfig.ClientTimeout},
|
||||
|
||||
Reference in New Issue
Block a user