陶杰
2024-08-22 cb9b8574fe5f5273bff72e31608185f0f595c0ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
      }
    },
    getAreaJson(){
      return http.request('flower/api/pub/china/area/json')
    }
  }
}