|
|
@@ -27,7 +27,7 @@ func SendCent(loginedWxUId, ivId int64) {
|
|
|
return
|
|
|
}
|
|
|
count := centAward.Count
|
|
|
- remark := fmt.Sprintf("首次登录,赠送积分:%d", count)
|
|
|
+ remark := fmt.Sprintf("首次登录,赠送积分:%.2f", float64(count)/float64(100))
|
|
|
c := new(cent_model.CentBalance).Create(wxUser.Id, count, s, s, remark)
|
|
|
if c != nil && ivId > 0 {
|
|
|
s := cent_model.NEW_MAN
|
|
|
@@ -36,7 +36,7 @@ func SendCent(loginedWxUId, ivId int64) {
|
|
|
return
|
|
|
}
|
|
|
count := centAward.Count
|
|
|
- remark := fmt.Sprintf("分享好友%s注册成功,赠送积分:%d", wxUser.Nickname, count)
|
|
|
+ remark := fmt.Sprintf("分享好友%s注册成功,赠送积分:%.2f", wxUser.Nickname, float64(count)/float64(100))
|
|
|
new(cent_model.CentBalance).Create(inviter.Id, count, s, s, remark)
|
|
|
}
|
|
|
beego.BeeLogger.Info("Wxuser SendCent wxUserId:%d, inviteId:%d", wxUser.Id, wxUser.InviteId)
|