# 变更记录-2020-11-12
## 1. game包下的游戏相关数据存储在本地
## 2. 获取游戏房间列表 api-app/v1/game/getRoomList 替换成游戏分类列表
- 返回数据格式不变
原来数据格式
```json
{
"code": "OK",
"data": [
{
"roomName": "BBIN",
"roomCode": "BBIN",
"logo": "http://www.aobo-game.com/ab/themes/simplebootx/Public/images/games/game-sort-icon-01.png",
"platform": "BBIN"
},
{
"roomName": "BBIN电子",
"roomCode": "BBINDZ",
"logo": "http://www.aobo-game.com/ab/themes/simplebootx/Public/images/games/game-sort-icon-02.png",
"platform": "BBIN"
},
{
"roomName": "游戏名称",
"roomCode": "code",
"logo": "http://te.jpg",
"platform": "p"
}
],
"msg": null,
"success": true
}
```
## 3. 增加游戏分类
## 4. 游戏、热门游戏存储在本地
### 获取热门游戏列表 api-app/v1/game/getHotGameList
原返回数据
```json
{
"code": "OK",
"data": [
{
"gameName": "捕鱼达人",
"isHorizontal": "1",
"icon": "https://p1.ywq55555.com/web/static/image/gamePicture/casino/pc/30/Game_30599.png?v=61",
"platform": "BBIN",
"gameCode": "BBIN-BYDR",
"deviceType": "mobile"
},
{
"gameName": "捕鱼达人2",
"isHorizontal": "1",
"icon": "https://p1.ywq55555.com/web/static/image/gamePicture/casino/pc/30/Game_30598.png?v=61",
"platform": "BBIN",
"gameCode": "BBIN-BYDR2",
"deviceType": "mobile"
},
{
"gameName": "外星戰記",
"isHorizontal": "1",
"icon": "https://p1.ywq55555.com/web/static/image/gamePicture/casino/pc/38/Game_38002.png?v=61",
"platform": "BBIN",
"gameCode": "BBINDZ-WXZJ",
"deviceType": "mobile"
}
],
"msg": null,
"success": true
}
```
### 获取游戏列表
- api-app/v1/game/getGameList
原返回数据
```json
{
"code": "OK",
"data": [
{
"gameName": "惑星戰記",
"isHorizontal": "1",
"icon": "https://p1.ywq55555.com/web/static/image/gamePicture/casino/pc/38/Game_38002.png?v=61",
"platform": "BBIN",
"gameCode": "BBINDZ-HXZJ",
"deviceType": "mobile"
},
{
"gameName": "外星戰記",
"isHorizontal": "1",
"icon": "https://p1.ywq55555.com/web/static/image/gamePicture/casino/pc/38/Game_38002.png?v=61",
"platform": "BBIN",
"gameCode": "BBINDZ-WXZJ",
"deviceType": "mobile"
}
],
"msg": null,
"success": true
}
```
## 5. 星钻兑换星芽游戏币时按 100 : 1 兑换
⭐️ **星钻** 兑换 **第三方游戏币** 流程
| 星钻 | **->** | 星芽游戏币 | **->** | 第三方游戏币 |
| --- | --- | --- | --- | --- |
| 100 | **->** | 1 | **->** | 1 |
⭐️ **第三方游戏币** 兑换 **星钻** 流程
| 第三方游戏币 | **->** | 星芽游戏币 | **->** | 星钻 |
| --- | --- | --- | --- | --- |
| 1 | **->** | 1 | **->** | 100 |
### 1. 兑换星钻 (游戏币、星尘 转 星钻)
- api-app/v1/wallet/transDiamond
- https://cyun.pro/console/api?p=120592570081591296&i=1430
### 2. 兑换游戏币 (星钻 转 游戏币)
- api-app/v1/wallet/transGameCoin
- https://cyun.pro/console/api?p=120592570081591296&i=1494
### 3. 游戏币兑换星钻 (游戏币 转 星钻)
- api-app/v1/wallet/transGameCoinToDiamond
- https://cyun.pro/console/api?p=120592570081591296&i=1504
### 4. 添加游戏币订单(星芽游戏币 转 第三方游戏币; 第三方游戏币 转 星芽游戏币)
- api-app/v1/game/addGameCoinOrder
- https://cyun.pro/console/api?p=120592570081591296&i=1498
- **转入**:星芽游戏币 转 第三方游戏币
- **转出**:第三方游戏币 转 星芽游戏币
### 5. 添加游戏币订单(划转资产,转入/转出)
- api-app/v1/gamedev/addGameCoinOrder
- https://cyun.pro/console/api?p=120592570081591296&i=1517
## 数据库
### 游戏分组 tb_game_group
- gameGroupId
- 分类名称
- icon
- 排序
- status 状态 CommonStatus.Deleted -1
- remarks 备注
- createTime 创建时间
- updateTime 更新时间
### 游戏 tb_game_info
- gameInfoId 游戏id
- gameName 游戏名称
- isHorizontal 是否横屏,1为横屏,0为竖屏
- icon 游戏图标
- platform 游戏平台
- gameCode 游戏编码
- deviceType 平台类型
- gameGroupId 游戏分组id
- 是否热门游戏 isHot BoolIntVal True = 1 False = 0
- sort 排序
- status 状态 CommonStatus.Deleted -1
- remarks 备注
- 创建时间
- 更新时间
spring.datasource.url=jdbc:mysql://starbuds-test.mysql.polardb.rds.aliyuncs.com:3306/dev-db-starbuds?useUnicode=true&characterEncoding=utf8
spring.datasource.username=dbm_starbuds
spring.datasource.password=iStarbuds@2020