/*
 * @Descripttion: HJ
 * @Company: 思宏科技
 * @version: v1.0
 * @Author: HJ
 * @Date: 2021-03-17 11:45:03
 * @LastEditors: HJ
 * @LastEditTime: 2021-07-06 11:43:03
 */
import request from "../../src/js/request";
import { _CLIENT_URL, _NOTIFY_MSM } from "../base-url";

// 将用户选择允许发送订阅消息回调给后端
export const fhPostWxMsg = (data, memberId, orderId) =>
  request({
    url: `${_CLIENT_URL}/${memberId}/order/wx-msg/${orderId}`,
    method: "post",
    data,
  });

const headers = {
  Authorization:
    "sheyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJjaGVuemljb25nIn0.krAAIe0gNafVK_tsm35raxK6PIdvcNQa_Lw9A7560Oc",
};
// 发送短信
export const fhSendMsm = (params) =>
  request({
    url: `${_NOTIFY_MSM}/captcha`,
    headers,
    params,
  });
