cloudroam
2024-12-31 2eeea7a6431f0b5fb25b338e2512c48deab8652e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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')
    },
    getBaseInfo(){
      return http.request('flower/v2/config-param/base/info')
    }
 
 
  }
}