longyvfengyun
2023-12-25 d8d792a6842832e8f6af6604274c438b25053afe
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import axios from "axios"
 
export default {
    /**
     * 获取MAC地址的加密
     * @returns {AxiosPromise}
     */
    getMacLicense() {
        // 请求后台查询内容
        return axios({
            method: 'post',
            url: 'LicenseAction!getSerialNumberLicense',
            data: null
        });
    },
    /**
     * 校验license是否合法
     * @param license
     * @returns {AxiosPromise}
     */
    checkLicense(license) {
        // 请求后台查询内容
        return axios({
            method: 'post',
            url: 'LicenseAction!checkSerialNumberLicense',
            data: "json="+license
        });
    },
    /**
     * 获取注册码剩余时间
     * @returns {AxiosPromise}
     */
    getLicenseResTime() {
        // 请求后台查询内容
        return axios({
            method: 'post',
            url: 'LicenseAction!time2DeadLine',
            data: null
        });
    },
    /**
     * 校验服务器是否注册
     * @param license
     * @returns {AxiosPromise}
     */
    checkServeLicense() {
        // 请求后台查询内容
        return axios({
            method: 'post',
            url: 'LicenseAction!checkRegistered',
            data: null
        });
    },
}