mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
set log...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
e87cfc9a6b
commit
d338369bb1
@ -31,7 +31,7 @@ public class MsgUtil {
|
|||||||
* on space.
|
* on space.
|
||||||
*/
|
*/
|
||||||
public static void clean() {
|
public static void clean() {
|
||||||
System.out.println("清理超过 一周 的 商店交易记录...");
|
plugin.getLogger().info("清理超过 一周 的 商店交易记录...");
|
||||||
// 604800,000 msec = 1 week.
|
// 604800,000 msec = 1 week.
|
||||||
final long weekAgo = System.currentTimeMillis() - 604800000;
|
final long weekAgo = System.currentTimeMillis() - 604800000;
|
||||||
plugin.getDB().execute("DELETE FROM messages WHERE time < ?", weekAgo);
|
plugin.getDB().execute("DELETE FROM messages WHERE time < ?", weekAgo);
|
||||||
|
Loading…
Reference in New Issue
Block a user