fix:nrf parameter config update to only get method
This commit is contained in:
@@ -32,6 +32,7 @@ type ParamConfig struct {
|
||||
NeId string `json:"neId"`
|
||||
TopTag string `json:"topTag"`
|
||||
TopDisplay string `json:"topDisplay"`
|
||||
Method string `json:"method"`
|
||||
ParamJson string `json:"paramJson"`
|
||||
}
|
||||
|
||||
@@ -56,6 +57,10 @@ func XormInsertParamConfig(mapJson *map[string]interface{}) (int64, error) {
|
||||
if k == "display" {
|
||||
paramConfig.TopDisplay = fmt.Sprintf("%v", v)
|
||||
|
||||
} else if k == "method" {
|
||||
if v != "" {
|
||||
paramConfig.Method = fmt.Sprintf("%v", v)
|
||||
}
|
||||
} else {
|
||||
pc, _ := json.Marshal(v)
|
||||
paramConfig.ParamJson = fmt.Sprintf("{\"%v\":%v}", k, string(pc))
|
||||
|
||||
Reference in New Issue
Block a user