mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix]修改减少验证
This commit is contained in:
@@ -205,7 +205,7 @@ func (p *DeviceApi) InsertDevice(rc *restfulx.ReqCtx) {
|
||||
// UpdateDevice 修改Device
|
||||
func (p *DeviceApi) UpdateDevice(rc *restfulx.ReqCtx) {
|
||||
var data entity.Device
|
||||
restfulx.BindJsonAndValid(rc, &data)
|
||||
restfulx.BindQuery(rc, &data)
|
||||
product := p.ProductApp.FindOne(data.Pid)
|
||||
biz.NotNil(product, "未查到所属产品信息")
|
||||
data.Protocol = product.ProtocolName
|
||||
|
||||
Reference in New Issue
Block a user