/*
 * @Description: 微信登录授权、支付
 * @Author: zhoupeng
 * @Date: 2020-04-24 10:14:57
 * @LastEditTime: 2020-07-02 10:01:21
 */
import request from '../../../utils/request';
import Config from '../../../utils/config';

//获取wechat授权参数
export const getConfig = data => {
  return request(
    {
      url: Config.apis.cku.subscription.wechatAuthorization,
      method: 'POST',
      data,
    },
    'nothing',
  );
};

//获取支付订单信息
export const getPayInfo = data => {
  return request(
    {
      url: Config.apis.cku.subscription.wechatPayInfo,
      method: 'POST',
      data,
    },
    'nothing',
  );
};

//检查支付结果
export const checkPayOrder = data => {
  return request(
    {
      url: Config.apis.cku.subscription.wechatCheck,
      method: 'POST',
      data,
    },
    'nothing',
  );
};
