Skip to content

Commit 8d1c18c

Browse files
authored
Update command.go (#487)
1 parent 8882412 commit 8d1c18c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

plugin/qqwife/command.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,6 @@ func init() {
484484
ctx.SendChain(message.Text("舔狗,今天你已经送过礼物了。"))
485485
return
486486
}
487-
// 写入CD
488-
err = 民政局.writeCDtime(gid, uid, 5)
489-
if err != nil {
490-
ctx.SendChain(message.At(uid), message.Text("[qqwife]你的技能CD记录失败\n", err))
491-
}
492487
// 获取好感度
493488
favor, err := 民政局.getFavorability(uid, gay)
494489
if err != nil {
@@ -525,6 +520,12 @@ func init() {
525520
ctx.SendChain(message.Text("[qqwife]好感度数据库发生问题力\n", err))
526521
return
527522
}
523+
// 写入CD
524+
err = 民政局.writeCDtime(gid, uid, 5)
525+
if err != nil {
526+
ctx.SendChain(message.At(uid), message.Text("[qqwife]你的技能CD记录失败\n", err))
527+
}
528+
// 输出结果
528529
if mood == 0 {
529530
ctx.SendChain(message.Text("你花了", moneyToFavor, "ATRI币买了一件女装送给了ta,ta很不喜欢,你们的好感度降低至", lastfavor))
530531
} else {

0 commit comments

Comments
 (0)