feat: log channel status update time

This commit is contained in:
1808837298@qq.com committed 2024-06-16 14:53:39 +08:00
1 parent 9254997601
commit 69ceb3cac3
2 files changed
+18 -1

No files matched your search

+1
View File
@@ -255,6 +255,7 @@ func UpdateChannelStatusById(id int, status int, reason string) {
// find channel by id success, update status and other info
info := channel.GetOtherInfo()
info["status_reason"] = reason
info["status_time"] = common.GetTimestamp()
channel.SetOtherInfo(info)
channel.Status = status
err = channel.Save()