import request from "../utils/request";
import config from "@/config";
const { vccHost, yxmGateway } = config;

// 查询活体认证url
const getFaceUrl = function(token, from, orderNo) {
  const callBackUrl = orderNo
    ? vccHost + token + "&fromXcxPage=" + from + "&orderNo=" + orderNo
    : vccHost + token + "&fromXcxPage=" + from;
  return request.get(`${yxmGateway}/api/kdsp/face/h5/face-url`, {
    callBackUrl: callBackUrl
  });
};

// const getNextUrl = function() {
//   return request.get(`${talosApi}/vcc/xyqb_mall/credit_url`);
// };

// const getNextUrlKa = function(data) {
//   return request.get(`${yxmGateway}/api/kdsp/ka/process/get-next-url`, data);
// };
export { getFaceUrl };
