back_recharge
parent
df8d2dafcb
commit
a2378730d3
|
@ -235,8 +235,8 @@ public class HomeLogic {
|
||||||
// 特权
|
// 特权
|
||||||
boolean allowed = user.getPlayerInfoManager().checkFunctionIsAllowed(VipPrivilegeType.HOME_ADD_EARNINGS);
|
boolean allowed = user.getPlayerInfoManager().checkFunctionIsAllowed(VipPrivilegeType.HOME_ADD_EARNINGS);
|
||||||
if (allowed){
|
if (allowed){
|
||||||
int[][]condition= SPrivilegeTypeConfig.getsPrivilegeTypeConfigMap().get(VipPrivilegeType.HOME_ADD_EARNINGS).getCondition();
|
int count = PlayerLogic.getInstance().getMaxCountByPrivilege(user, VipPrivilegeType.HOME_ADD_EARNINGS);
|
||||||
minutesNum = minutesNum * condition[0][1] / 10000;
|
minutesNum = minutesNum * count / 10000;
|
||||||
}
|
}
|
||||||
// 可领取上限
|
// 可领取上限
|
||||||
int getNumMax = homeLandLevel.getStorage()[0][1];
|
int getNumMax = homeLandLevel.getStorage()[0][1];
|
||||||
|
|
|
@ -1578,7 +1578,7 @@ public class PlayerLogic {
|
||||||
* @param privilegeId
|
* @param privilegeId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private int getMaxCountByPrivilege(User user,int privilegeId){
|
public int getMaxCountByPrivilege(User user,int privilegeId){
|
||||||
SPrivilegeTypeConfig sPrivilegeTypeConfig = SPrivilegeTypeConfig.getsPrivilegeTypeConfigMap().get(privilegeId);
|
SPrivilegeTypeConfig sPrivilegeTypeConfig = SPrivilegeTypeConfig.getsPrivilegeTypeConfigMap().get(privilegeId);
|
||||||
int cond = 0;
|
int cond = 0;
|
||||||
switch (sPrivilegeTypeConfig.getUnlockType()){
|
switch (sPrivilegeTypeConfig.getUnlockType()){
|
||||||
|
|
Loading…
Reference in New Issue