审核规避词+敏感词skill
This commit is contained in:
1 parent
a9552b3d1a
commit
f05a11f0f3
14 files changed
+79
-29
No files matched your search
+3
-3
@@ -49,7 +49,7 @@ App({
|
||||
},
|
||||
|
||||
/**
|
||||
* 启动流程:配置再静默登录,最后拉已购课程。
|
||||
* 启动流程:配置再静默登录,最后拉已购内容。
|
||||
*
|
||||
* 每一步失败都不阻断启动:配置缺失时页面按空值渲染,登录失败时按未登录渲染。
|
||||
* 旧版本在页面 data 里同步读缓存、而缓存由异步写入,首次安装必然报错,这里不再重蹈。
|
||||
@@ -64,8 +64,8 @@ App({
|
||||
api
|
||||
.login()
|
||||
.then((res) => {
|
||||
// 静默登录只建立身份。用户从没主动登录过、或者已经退出,就不去拉已购课程,
|
||||
// 否则知识页会在「未登录」状态下又冒出课程列表。
|
||||
// 静默登录只建立身份。用户从没主动登录过、或者已经退出,就不去拉已购内容,
|
||||
// 否则知识页会在「未登录」状态下又冒出一份已购列表。
|
||||
if (!res || !res.user || res.user.isLogin !== 1) {
|
||||
store.setEntitlements([]);
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user