cloudroam
2024-09-30 e3f789767f9498184782efe4337bda09b5c328f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import utils from 'el-business-utils'
import { v4 as uuidv4 } from 'uuid'
export default function (http) {
  return {
    createCaptcha() {
      const uuid = uuidv4()
      const config = process.env.config
      return {
        imageSrc: utils.joinPath(
          config.httpBaseUri,
          `flower/api/pub/captcha/${uuid}`
        ),
        captchaCodeId: uuid,
      }
    },
  }
}