service.ts 289 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
import request from 'umi-request';

export async function fakeAccountLogin(params) {
  return request('/api/BLOCK_NAME/account', {
    method: 'POST',
    data: params,
  });
}

export async function getFakeCaptcha(mobile) {
  return request(`/api/BLOCK_NAME/captcha?mobile=${mobile}`);
}