1
This commit is contained in:
parent
e57b3051f5
commit
eda59f8c72
@ -14,7 +14,7 @@ var Friend = new (friend)
|
|||||||
|
|
||||||
func (this *friend) Force(accountId1 string, accountId2 string, nowTime int64,
|
func (this *friend) Force(accountId1 string, accountId2 string, nowTime int64,
|
||||||
cb func (error, int64, int64)) {
|
cb func (error, int64, int64)) {
|
||||||
f5.GetJsStyleDb().Upsert(
|
f5.GetJsStyleDb().UpsertEx(
|
||||||
constant.FRIEND_DB,
|
constant.FRIEND_DB,
|
||||||
"t_friend_relationship",
|
"t_friend_relationship",
|
||||||
[][]string{
|
[][]string{
|
||||||
@ -33,7 +33,12 @@ func (this *friend) Force(accountId1 string, accountId2 string, nowTime int64,
|
|||||||
{"createtime", q5.ToString(nowTime)},
|
{"createtime", q5.ToString(nowTime)},
|
||||||
{"modifytime", q5.ToString(nowTime)},
|
{"modifytime", q5.ToString(nowTime)},
|
||||||
},
|
},
|
||||||
cb)
|
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||||
|
cb(err, lastInsertId, rowsAffected)
|
||||||
|
},
|
||||||
|
func (ds *f5.DataSet) bool {
|
||||||
|
return true
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *friend) DeleteSoft(accountId1 string, accountId2 string,
|
func (this *friend) DeleteSoft(accountId1 string, accountId2 string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user