mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 01:55:58 +08:00
fine-tune the new UI theme, merge the code and fixed conflicts
This commit is contained in:
@@ -107,7 +107,10 @@ func (t PowerType) String() string {
|
||||
return "退款"
|
||||
case PowerRedeem:
|
||||
return "兑换"
|
||||
|
||||
case PowerGift:
|
||||
return "赠送"
|
||||
case PowerInvite:
|
||||
return "邀请"
|
||||
}
|
||||
return "其他"
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ func (h *UserHandler) Register(c *gin.Context) {
|
||||
if h.App.SysConfig.InvitePower > 0 {
|
||||
err := h.userService.IncreasePower(int(inviteCode.UserId), h.App.SysConfig.InvitePower, model.PowerLog{
|
||||
Type: types.PowerInvite,
|
||||
Model: "",
|
||||
Model: "Invite",
|
||||
Remark: fmt.Sprintf("邀请用户注册奖励,金额:%d,邀请码:%s,新用户:%s", h.App.SysConfig.InvitePower, inviteCode.Code, user.Username),
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user