- 用户端
- 薄荷运营后台
- NN管理后台服务
- NN发行接入薄荷接口
nn试玩套餐列表
测试环境
http://test1-opapi.nn.com/share/sgame
测试环境
http://test1-opapi.nn.com/share/sgame
GET
http://test1-opapi.nn.com/share/sgame
最后修改时间:2025-05-22 08:13:37
责任人:未设置
请求参数
Query 参数
game
integer
必需
Header 参数
reqChannel
integer
可选
默认值:
3
appid
string
可选
token
string
可选
x-access-token
string
管理后台token
默认值:
{{x-access-token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://test1-opapi.nn.com/share/sgame/goods/shareMeal/list?game' \
--header 'reqChannel: 3' \
--header 'appid;' \
--header 'token;' \
--header 'x-access-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NTEwMTA5MzMsInVzZXJuYW1lIjoiYWRtaW4ifQ.3BIsSwbWedvRhd-GZmhWitrIPQwubGOP1BYuTBoZ458'
返回响应
🟢200成功
application/json
Body
retCode
string
响应码
retMsg
string
响应信息
retData
array[object (ShareDurationMealDTO) {13}]
响应内容
dbId
integer
套餐ID
gameId
integer <int64>
游戏ID
setMealName
string
套餐名字
duration
integer
时长 单位天
orginPrice
number
原价
realPrice
number
优惠价格
reducePrice
number
立省价格
buyType
integer
可选
goodId
string
商品ID
mealType
integer
可选
discountRate
string
可选
webDiscount
string
可选
couponDTOS
array[object (UnusedCouponDTO) {9}]
可选
retTime
string
响应时间
示例
{
"retCode": "",
"retMsg": "",
"retData": [
{
"dbId": 0,
"gameId": 0,
"setMealName": "",
"duration": 0,
"orginPrice": 0.0,
"realPrice": 0.0,
"reducePrice": 0.0,
"buyType": 0,
"goodId": "",
"mealType": 0,
"discountRate": "",
"webDiscount": "",
"couponDTOS": [
{
"id": 0,
"couponId": 0,
"couponType": 0,
"threshold": 0,
"discount": 0.0,
"couponName": "",
"displayText": "",
"expiredTime": 0,
"reduceAmount": 0.0
}
]
}
],
"retTime": ""
}
修改于 2025-05-22 08:13:37