增加上传接口
This commit is contained in:
+3
-2
@@ -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
|
||||
}
|
||||
|
||||
//如果插入成功,删除缓存
|
||||
|
||||
Reference in New Issue
Block a user