core: data feedback system

This commit is contained in:
undefined committed 2020-11-28 19:19:15 +08:00
1 parent 83cc85492d
commit 1817341eee
7 files changed
+54 -5

No files matched your search

+1
View File
@@ -130,6 +130,7 @@ class SwitchLanguageHandler extends Handler {
@param('lang', Types.String)
async get(domainId: string, lang: string) {
if (this.user.hasPriv(PRIV.PRIV_USER_PROFILE)) {
this.session.viewLang = lang;
await user.setById(this.user._id, { viewLang: lang });
} else this.session.viewLang = lang;
this.back();