Commit 021601f0 by patpat

离线支付防重复数量增加到2000

parent 361fa393
...@@ -18,5 +18,6 @@ public enum ActionEnum { ...@@ -18,5 +18,6 @@ public enum ActionEnum {
CONFIG_WIFI, CONFIG_WIFI,
CONFIG_UPDATE, CONFIG_UPDATE,
CONFIG_SERVER, CONFIG_SERVER,
CONFIG_PAYCODE_RULE CONFIG_PAYCODE_RULE,
CONFIG_CLEAR_OFFLINE_RECODE
} }
...@@ -123,7 +123,7 @@ public class PayOfflineAction extends Action { ...@@ -123,7 +123,7 @@ public class PayOfflineAction extends Action {
mPayCodeHistory.remove(payCode); mPayCodeHistory.remove(payCode);
} }
mPayCodeHistory.add(payCode); mPayCodeHistory.add(payCode);
if (mPayCodeHistory.size() > 300) { if (mPayCodeHistory.size() > 2000) {
mPayCodeHistory.remove(0); mPayCodeHistory.remove(0);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment