From 46cecc47ea96bb6a0f3546a211299d926ec20506 Mon Sep 17 00:00:00 2001 From: hoteas Date: Sat, 31 Dec 2022 22:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/code.go b/code.go index c3ff078..7e30a37 100644 --- a/code.go +++ b/code.go @@ -22,16 +22,18 @@ var TptProject = Proj{ tableName := that.RouterString[1] data := that.Db.Get(fileConfig.GetString("table"), "*", Map{"id": that.Session(fileConfig.GetString("table") + "_id").ToCeilInt()}) - str, inData := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db) + //str, inData := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db) + str, _ := that.MakeCodeRouter[hotimeName].Info(tableName, data, that.Db) where := Map{"id": that.RouterString[2]} - if len(inData) == 1 { - inData["id"] = where["id"] - where = Map{"AND": inData} - } else if len(inData) > 1 { - where["OR"] = inData - where = Map{"AND": where} - } + //权限控制,暂时取消 + //if len(inData) == 1 { + // inData["id"] = where["id"] + // where = Map{"AND": inData} + //} else if len(inData) > 1 { + // where["OR"] = inData + // where = Map{"AND": where} + //} re := that.Db.Get(tableName, str, where)