(state, options = {})
| 18 | } = deps; |
| 19 | |
| 20 | async function requestOAuthUrlFromPanel(state, options = {}) { |
| 21 | if (getPanelMode(state) === 'sub2api') { |
| 22 | return requestSub2ApiOAuthUrl(state, options); |
| 23 | } |
| 24 | return requestCpaOAuthUrl(state, options); |
| 25 | } |
| 26 | |
| 27 | async function requestCpaOAuthUrl(state, options = {}) { |
| 28 | const { logLabel = 'OAuth 刷新' } = options; |
nothing calls this directly
no test coverage detected