muxi feng commited on
Commit
a6c6707
·
1 Parent(s): 206643b

修改vip判断条件

Browse files
Files changed (1) hide show
  1. app/requests.ts +1 -1
app/requests.ts CHANGED
@@ -218,7 +218,7 @@ export async function requestChatStream(
218
  }
219
  let vip=await isVip()
220
  const Bot = useAppConfig.getState().bot;
221
- if(!vip.flag){
222
  if(vip.msg=="未登录!"){
223
  showToast("未登录!")
224
  options?.onError(new Error("Unauthorized"), 401);
 
218
  }
219
  let vip=await isVip()
220
  const Bot = useAppConfig.getState().bot;
221
+ if(!vip.flag||vip.msg=="非会员"){
222
  if(vip.msg=="未登录!"){
223
  showToast("未登录!")
224
  options?.onError(new Error("Unauthorized"), 401);