# 云函数删除卡密
# 简要描述
- 云函数删除卡密
# 方法名称
delCard
# 调用参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| cardStr | 是 | string | 卡密 |
# 调用实例
const cardStr='121212'
// 调用方法
var res = potato.delCard(cardStr)
// 返回给调用接口
res
1
2
3
4
5
2
3
4
5
# 调用方法返回示例
1
# 返回参数
| 参数名 | 必选 | 类型 | 说明 |
|---|
# API调用参数
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| name | 是 | string | 函数名称 |
| params | 否 | json | 调用参数 |
# API调用实例
{
"name":"testFun"
}
1
2
3
2
3
# API调用请求头
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| 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分钟内不允许重复) |
# API调用返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | string | 状态码200成功,403权限异常或登陆超时,500请求异常,203请求无数据 |
| status | int | 状态0删除1使用 |
| data | object | 返回内容,云函数如果没有返回结果则该值为空 |
| res | object | 执行返回数据 |
| param | object | 返回执行参数,可以忽略 |
| nonce | string | 随机字符串(当开启V3验签必返回次参数,且2分钟内不会重复) |
| sign | string | 此参数如果在app设置开启了验签是必返 |
| time | long | 当开启验签时,此参数为必返回 |
# API调用返回示例
{
"code": "200",
"message": "",
"status": true,
"data": {
"cardStr": "0C22411D2AF42B2B3EB78E3C08B0BE95",
"exportState": 1,
"ip": "0:0:0:0:0:0:0:1",
"remark": "1",
"type": 0,
"createdDate": 1716780902019,
"systemState": 0,
"createdBy": "698119193918787584",
"appId": "903227433290342400",
"modifiedDate": 1746251445337,
"modifiedBy": "698119193918787584",
"id": "954914221255598080",
"state": 1,
"status": 1
},
"pc": null,
"time": null,
"nonce": 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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 备注
- 更多返回错误代码请看首页的错误代码描述