@@ -17,7 +17,7 @@ import ( | |||||
// @Accept json | // @Accept json | ||||
// @Produce json | // @Produce json | ||||
// @param Authorization header string true "验证参数Bearer和token空格拼接" | // @param Authorization header string true "验证参数Bearer和token空格拼接" | ||||
// @Param mod_name_value query string true "页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 14实名认证)" | |||||
// @Param mod_name_value query string true "页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 14实名认证 15:官网联系我们 16:星球论剑 17:升级攻略)" | |||||
// @Success 200 {object} md.GetModuleSettingResp "具体数据" | // @Success 200 {object} md.GetModuleSettingResp "具体数据" | ||||
// @Failure 400 {object} md.Response "具体错误" | // @Failure 400 {object} md.Response "具体错误" | ||||
// @Router /api/v1/getModuleSetting [GET] | // @Router /api/v1/getModuleSetting [GET] | ||||
@@ -38,6 +38,8 @@ func GetModuleSetting(c *gin.Context) { | |||||
"12": "withdraw", | "12": "withdraw", | ||||
"13": "withdraw_account", | "13": "withdraw_account", | ||||
"14": "user_real_name", | "14": "user_real_name", | ||||
"16": "star_sword_debate", | |||||
"17": "upgrade_strategy", | |||||
} | } | ||||
val, ok := modNameMap[modName] | val, ok := modNameMap[modName] | ||||
if !ok { | if !ok { | ||||
@@ -915,9 +915,14 @@ func PointsCenterCalcExchange(c *gin.Context) { | |||||
return | return | ||||
} | } | ||||
feeDecimal, err := decimal.NewFromString(exchangeResp.AmountFee) | |||||
if err != nil { | |||||
e.OutErr(c, e.ERR, err.Error()) | |||||
return | |||||
} | |||||
resp := md.PointsCenterCalcExchangeResp{ | resp := md.PointsCenterCalcExchangeResp{ | ||||
Value: exchangeResp.GetEggEnergyAmount, | Value: exchangeResp.GetEggEnergyAmount, | ||||
Fee: exchangeResp.AmountFee, | |||||
Fee: feeDecimal.StringFixed(2), | |||||
} | } | ||||
e.OutSuc(c, resp, nil) | e.OutSuc(c, resp, nil) | ||||
@@ -1896,7 +1896,7 @@ const docTemplate = `{ | |||||
}, | }, | ||||
{ | { | ||||
"type": "string", | "type": "string", | ||||
"description": "页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 14实名认证)", | |||||
"description": "页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 14实名认证 15:官网联系我们 16:星球论剑 17:升级攻略)", | |||||
"name": "mod_name_value", | "name": "mod_name_value", | ||||
"in": "query", | "in": "query", | ||||
"required": true | "required": true | ||||
@@ -1890,7 +1890,7 @@ | |||||
}, | }, | ||||
{ | { | ||||
"type": "string", | "type": "string", | ||||
"description": "页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 14实名认证)", | |||||
"description": "页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 14实名认证 15:官网联系我们 16:星球论剑 17:升级攻略)", | |||||
"name": "mod_name_value", | "name": "mod_name_value", | ||||
"in": "query", | "in": "query", | ||||
"required": true | "required": true | ||||
@@ -3074,7 +3074,7 @@ paths: | |||||
required: true | required: true | ||||
type: string | type: string | ||||
- description: 页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 | - description: 页面名称类型值(1:首页 2:会员中心 3:底部导航 4:邀请下载落地页 5:邀请海报 7:下载渠道 8:贡献值 9:蛋蛋分 10:商务合作 11:资质证书 12:提现页 13:提现到账户 | ||||
14实名认证) | |||||
14实名认证 15:官网联系我们 16:星球论剑 17:升级攻略) | |||||
in: query | in: query | ||||
name: mod_name_value | name: mod_name_value | ||||
required: true | required: true | ||||
@@ -34,7 +34,7 @@ require ( | |||||
require ( | require ( | ||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241221164231-20952e894d1d | code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241221164231-20952e894d1d | ||||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241222141934-5562d8e0231c | |||||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241223102933-953e3394de41 | |||||
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | ||||
github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible | github.com/aliyun/aliyun-oss-go-sdk v3.0.2+incompatible | ||||