基础整理

This commit is contained in:
hoteas
2022-05-03 09:41:18 +08:00
parent 0b09a13c17
commit 58da542533
7 changed files with 430 additions and 8 deletions
+9
View File
@@ -140,6 +140,15 @@ var WechatMini = Ctr{
}
user["id"] = that.Db.Insert("user", user)
user["company_id"] = that.Db.Insert("company", Map{
"user_id": user["id"],
"create_time[#]": "now()",
"modify_time[#]": "now()",
"del_flag": 0,
})
that.Db.Update("user", Map{"company_id": user["company_id"]}, Map{"id": user["id"]})
wchat["user_id"] = user.GetCeilInt("id")
wchat["create_time[#]"] = "now()"