fix(site): avoid err_msg cannot be updated when it's None

This commit is contained in:
InfinityPacer
2024-12-18 16:39:14 +08:00
parent 8e309e8658
commit fca763b814
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -114,7 +114,8 @@ class SiteOper(DbOper):
"domain": domain,
"name": name,
"updated_day": current_day,
"updated_time": current_time
"updated_time": current_time,
"err_msg": payload.get("err_msg") or ""
})
# 按站点+天判断是否存在数据
siteuserdatas = SiteUserData.get_by_domain(self._db, domain=domain, workdate=current_day)