daoke.js 574 Bytes
Newer Older
李嘉林 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import indexApi from "@/api/index";


export function getBcakUrlApi(data) {
    return new Promise((resolve, reject) => {
        data.fromAppid = 'VsEOuDJqBnGNyXZJWCQS'
        indexApi.getSsoCallbackUrl(data).then(res => {
          if (res.data.code == 200) {
            resolve(res.data.data);
          }
        });
    })

}

export function createdUserJWTApi(data) {
    return new Promise((resolve, reject) => {
        indexApi.createdUserJWT().then(res => {
        if (res.data.code == 200) {
            resolve(res.data.data);
        }
        });
    })

}