更新签到奖励规则
()
| 185 | |
| 186 | // 更新签到奖励规则 |
| 187 | func (m *Sign) UpdateSignRule() { |
| 188 | ops := []string{"SIGN_BASIC_REWARD", "SIGN_APP_REWARD", "SIGN_CONTINUOUS_REWARD", "SIGN_CONTINUOUS_MAX_REWARD"} |
| 189 | for _, op := range ops { |
| 190 | num, _ := strconv.Atoi(GetOptionValue(op, "")) |
| 191 | switch op { |
| 192 | case "SIGN_BASIC_REWARD": |
| 193 | _rule.BasicReward = num |
| 194 | case "SIGN_APP_REWARD": |
| 195 | _rule.AppReward = num |
| 196 | case "SIGN_CONTINUOUS_REWARD": |
| 197 | _rule.ContinuousReward = num |
| 198 | case "SIGN_CONTINUOUS_MAX_REWARD": |
| 199 | _rule.MaxContinuousReward = num |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | func (m *Sign) Sorted(limit int, orderField string, withCache ...bool) (members []Member) { |
| 205 | var b []byte |
no test coverage detected