aa
This commit is contained in:
@@ -278,11 +278,11 @@ func (c *ApiController) UpdatePrinter(dataMap map[string]interface{}) (data, err
|
||||
} else {
|
||||
sound = &soundStr
|
||||
}
|
||||
if volumeInt, ok := dataMap[keyVolume].(string); !ok {
|
||||
volume = nil
|
||||
if volumeInt, ok := dataMap[keyVolume].(int); !ok {
|
||||
//volume = nil
|
||||
return buildParamErrCodeAndErr(keyVolume)
|
||||
} else {
|
||||
volumeStr := utils.Str2Int(volumeInt)
|
||||
volume = &volumeStr
|
||||
volume = &volumeInt
|
||||
}
|
||||
appID = utils.Str2Int(dataMap[keyAppID].(string))
|
||||
if err = cms.UpdatePrinter(appID, printNo, name, sim, sound, volume); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user