陶杰
2024-08-22 973662aeae3e7c788c14671d17c5962395141770
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,
      }
    },
  }
}