diff --git a/md/es.go b/md/es.go index cc24692..0922246 100644 --- a/md/es.go +++ b/md/es.go @@ -91,8 +91,8 @@ type EggEnergyUserEggScoreEs struct { SignInNums int `json:"sign_in_nums" label:"签到次数"` ImActivityNums int `json:"im_activity_nums" label:"im活跃次数"` SendRedPackageNums int `json:"send_red_package_nums" label:"发红包次数"` - EggEnergyExchangeAccountBalance int `json:"egg_energy_exchange_account_balance" label:"蛋蛋能量兑换余额数量"` - AccountBalanceExchangeEggEnergyNums int `json:"account_balance_exchange_egg_energy_nums" label:"余额兑换蛋蛋能量数量"` + EggEnergyExchangeAccountBalance float64 `json:"egg_energy_exchange_account_balance" label:"蛋蛋能量兑换余额数量"` + AccountBalanceExchangeEggEnergyNums float64 `json:"account_balance_exchange_egg_energy_nums" label:"余额兑换蛋蛋能量数量"` SendCircleOfFriendNums int `json:"send_circle_of_friend_nums" label:"发朋友圈次数"` ForumCommentsNums int `json:"forum_comments_nums" label:"论坛评论次数"` CollegeLearningNums int `json:"college_learning_nums" label:"学院学习次数"` diff --git a/rule/egg_energy/create_es_score_and_assign_value.go b/rule/egg_energy/create_es_score_and_assign_value.go index ebd8471..a0d75a4 100644 --- a/rule/egg_energy/create_es_score_and_assign_value.go +++ b/rule/egg_energy/create_es_score_and_assign_value.go @@ -32,9 +32,9 @@ func CreateEsScoreAndAssignValuesDoc(index, id string, uid int64, kind enum.EggE case enum.SendRedPackageNums: m.SendRedPackageNums = utils.StrToInt(value) case enum.EsEggEnergyExchangeAccountBalance: - m.EggEnergyExchangeAccountBalance = utils.StrToInt(value) + m.EggEnergyExchangeAccountBalance = utils.StrToFloat64(value) case enum.AccountBalanceExchangeEggEnergyNums: - m.AccountBalanceExchangeEggEnergyNums = utils.StrToInt(value) + m.AccountBalanceExchangeEggEnergyNums = utils.StrToFloat64(value) case enum.SendCircleOfFriendNums: m.SendCircleOfFriendNums = utils.StrToInt(value) case enum.ForumCommentsNums: