...
|
...
|
@@ -340,8 +340,9 @@ func (c *AuditController) ChanceStoreChange() { |
|
|
c.ResposeJson(msg)
|
|
|
}()
|
|
|
type Parameter struct {
|
|
|
ChanceId string `json:"chance_id"`
|
|
|
StoreType int8 `json:"store_type"`
|
|
|
ChanceId string `json:"chance_id"`
|
|
|
StoreType int8 `json:"store_type"`
|
|
|
ReserveType int `json:"reserve_type"`
|
|
|
}
|
|
|
var param Parameter
|
|
|
if err := json.Unmarshal(c.Ctx.Input.RequestBody, ¶m); err != nil {
|
...
|
...
|
@@ -367,7 +368,8 @@ func (c *AuditController) ChanceStoreChange() { |
|
|
return
|
|
|
}
|
|
|
chanceData.StoreType = param.StoreType
|
|
|
err = models.UpdateChanceById(chanceData, []string{"StoreType"})
|
|
|
chanceData.ReserveTypeId = param.ReserveType
|
|
|
err = models.UpdateChanceById(chanceData, []string{"StoreType", "ReserveTypeId"})
|
|
|
msg = protocol.NewReturnResponse(nil, nil)
|
|
|
return
|
|
|
}
|
...
|
...
|
|