1
This commit is contained in:
parent
f32e1fe47f
commit
69b2db191e
@ -35,7 +35,8 @@ func (this *friend) Force(accountId1 string, accountId2 string, nowTime int64,
|
|||||||
},
|
},
|
||||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||||
cb(err, lastInsertId, rowsAffected)
|
cb(err, lastInsertId, rowsAffected)
|
||||||
this.updateAddFriendTask(accountId1, accountId2, nowTime)
|
this.updateAddFriendTask(accountId1, nowTime)
|
||||||
|
this.updateAddFriendTask(accountId2, nowTime)
|
||||||
},
|
},
|
||||||
func (ds *f5.DataSet) bool {
|
func (ds *f5.DataSet) bool {
|
||||||
return true
|
return true
|
||||||
@ -58,28 +59,25 @@ func (this *friend) DeleteSoft(accountId1 string, accountId2 string,
|
|||||||
cb)
|
cb)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *friend) updateAddFriendTask(accountId1 string, accountId2 string, nowTime int64) {
|
func (this *friend) updateAddFriendTask(accountId string, nowTime int64) {
|
||||||
{
|
f5.GetJsStyleDb().Upsert(
|
||||||
f5.GetJsStyleDb().Upsert(
|
constant.GAME_DB,
|
||||||
constant.GAME_DB,
|
"t_rookie_task_value",
|
||||||
"t_friend_relationship",
|
[][]string{
|
||||||
[][]string{
|
{"account_id", accountId},
|
||||||
{"account_id1", accountId1},
|
{"task_type", "16"},
|
||||||
{"account_id2", accountId2},
|
},
|
||||||
},
|
[][]string{
|
||||||
[][]string{
|
{"!value", "value + 1"},
|
||||||
{"add_time", q5.ToString(nowTime)},
|
{"modifytime", q5.ToString(nowTime)},
|
||||||
{"deleted", "0"},
|
},
|
||||||
},
|
[][]string{
|
||||||
[][]string{
|
{"account_id", accountId},
|
||||||
{"account_id1", accountId1},
|
{"task_type", "16"},
|
||||||
{"account_id2", accountId2},
|
{"value", "1"},
|
||||||
{"add_time", q5.ToString(nowTime)},
|
{"createtime", q5.ToString(nowTime)},
|
||||||
{"deleted", "0"},
|
{"modifytime", q5.ToString(nowTime)},
|
||||||
{"createtime", q5.ToString(nowTime)},
|
},
|
||||||
{"modifytime", q5.ToString(nowTime)},
|
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||||
},
|
})
|
||||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user