Commit 55f9a48f by CalciumIon

fix: oauth aff

parent 76a81ad5
......@@ -2,8 +2,8 @@ import { API, showError } from '../helpers';
export async function getOAuthState() {
let path = '/api/oauth/state';
let affCode = new URLSearchParams(window.location.search).get('aff');
if (affCode) {
let affCode = localStorage.getItem('aff');
if (affCode && affCode.length > 0) {
path += `?aff=${affCode}`;
}
const res = await API.get(path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment