# 生成卡密
# 简要描述
- 用户生成卡密接口,前提需要开启API生成卡密开关
# 请求URL
/api/createCardMy
# 请求头
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
Content-Type | 是 | string | 此参数必传,当请求数据非json时此参数传对应格式如(multipartform-data,application/x-www-form-urlencoded,等)是json请传application/json |
askKey | 是 | string | 此参数必传,验证app的令牌 |
sign | 否 | string | 此参数如果在app设置开启了验签是必传 |
time | 否 | string | 当开启验签时,此参数为必传 |
apiUserToken | 是 | string | 用户令牌 |
nonce | 否 | string | 随机字符串(当开启V3验签此参数必传,且2分钟内不允许重复) |
# 请求方式
- post
# 参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
type | 是 | int | 卡密类型 0天卡,1周卡,2月卡,3季卡,4年卡,5永久卡 |
total | 是 | int | 生成条数最大单次10条 |
# 请求示例
{
"type":1,
"total":10
}
1
2
3
4
2
3
4
# 返回示例
{
"code": "200",
"message": "",
"status": true,
"data": [
{
"id": "783556860021596160",
"createdDate": 1675926123437,
"modifiedDate": 1675926123437,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "BF28FAE82497C318B95BB9D0D902F251",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860025790464",
"createdDate": 1675926123438,
"modifiedDate": 1675926123438,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "5ABFB5D49A207A542A71327687FA410D",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860025790465",
"createdDate": 1675926123438,
"modifiedDate": 1675926123438,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "C6734B19399BCE7F6685FC54DBA8C6EB",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860029984768",
"createdDate": 1675926123439,
"modifiedDate": 1675926123439,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "9C8F95A5D26A203BE1000F2E1F9FAA28",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860029984769",
"createdDate": 1675926123439,
"modifiedDate": 1675926123439,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "A388018992213DFA44B7670C42EA41E9",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860029984770",
"createdDate": 1675926123439,
"modifiedDate": 1675926123439,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "02BA2ADF570B664DF30618737CE85FDC",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860034179072",
"createdDate": 1675926123440,
"modifiedDate": 1675926123440,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "09DAD94B1666DC3C5401414001AD8B89",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860034179073",
"createdDate": 1675926123440,
"modifiedDate": 1675926123440,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "6FBF0B13EC51A34C59A8125703171D6F",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860038373376",
"createdDate": 1675926123441,
"modifiedDate": 1675926123441,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "DB32148644BC0C08E6ABAB7706724828",
"exportState": 1,
"state": 1,
"type": 1
},
{
"id": "783556860038373377",
"createdDate": 1675926123441,
"modifiedDate": 1675926123441,
"status": 1,
"ip": "127.0.0.1",
"appId": "657801375071686656",
"cardStr": "2BFA6431BE67D05C5668F9941FEEE2F7",
"exportState": 1,
"state": 1,
"type": 1
}
],
"pc": null,
"time": null,
"sign": null
}
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# 返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | string | 状态码200成功403权限异常或登陆超时,500请求异常 |
status | int | 状态0删除1使用 |
data | array | 内容 |
createdDate | string | 创建时间 |
type | int | 卡密类型 0天卡,1周卡,2月卡,3季卡,4年卡,5永久卡 |
cardStr | string | 生成的卡密 |
# 备注
- 更多返回错误代码请看首页的错误代码描述
← 获取商品标签列表 查询用户生成卡密列表 →