We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e71556 commit 347509eCopy full SHA for 347509e
APIJSON.NET/APIJSON.NET/Controllers/JsonController.cs
@@ -251,15 +251,14 @@ public ActionResult Edit([FromBody]string json)
251
}
252
253
var dt = new Dictionary<string, object>();
254
- dt.Add("id", value["id"].ToString());
255
foreach (var f in value)
256
{
257
- if (f.Key.ToLower() != "id"&& selectTable.IsCol(key,f.Key) && (role.Update.Column.Contains("*")||role.Update.Column.Contains(f.Key, StringComparer.CurrentCultureIgnoreCase)))
+ if (f.Key.ToLower() != "id"&& selectTable.IsCol(key,f.Key) && (role.Update.Column.Contains("*")||role.Update.Column.Contains(f.Key, StringComparer.CurrentCultureIgnoreCase)))
258
259
dt.Add(f.Key, f.Value);
260
261
262
- db.Db.Updateable(dt).AS(key).ExecuteCommand();
+ db.Db.Updateable(dt).AS(key).Where("id=@id",new{id=value["id"].ToString()}).ExecuteCommand();
263
ht.Add(key, JToken.FromObject(new { code = 200, msg = "success", id = value["id"].ToString() }));
264
265
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments