MCPcopy Index your code
hub / github.com/dataease/SQLBot / isPlatform

Function isPlatform

frontend/src/utils/utils.ts:248–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246}
247
248export const isPlatform = () => {
249 const state = getQueryString('state')
250 const platformArray = ['wecom', 'dingtalk', 'lark']
251 return (
252 !!state &&
253 !!getQueryString('code') &&
254 platformArray.some((item: string) => state.includes(item))
255 )
256}
257
258export const isPlatformClient = () => {
259 return !!getQueryString('client') || getQueryString('state')?.includes('client')

Callers 1

logoutFunction · 0.90

Calls 3

getQueryStringFunction · 0.85
someMethod · 0.45
includesMethod · 0.45

Tested by

no test coverage detected