增加上传接口

This commit is contained in:
2021-07-05 02:20:10 +08:00
parent 05c8159601
commit 4ad401bafc
3 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -1013,8 +1013,9 @@ func (that *HoTimeDB) Insert(table string, data map[string]interface{}) int64 {
id := int64(0)
if err.GetError() == nil && res != nil {
//id, that.LastErr.err = res.LastInsertId()
id1, err := res.LastInsertId()
that.LastErr.SetError(err)
id = id1
}
//如果插入成功,删除缓存