import { fetch } from '../../../utils/util'; export type ResponseType = Promise; export const URL = '/api/captcha.jpg'; /** * @desc getCaptcha */ export function request( options?: WechatMiniprogram.RequestOption, ): ResponseType { let url = '/api/captcha.jpg'; const fetchOption = Object.assign( { url: url, method: 'GET', headers: { 'Content-Type': 'application/json', }, }, options, ); return fetch(fetchOption); }