diff --git a/bot/bot/bot_payCheck.php b/bot/bot/bot_payCheck.php index 66111cd..4640bb5 100644 --- a/bot/bot/bot_payCheck.php +++ b/bot/bot/bot_payCheck.php @@ -23,7 +23,7 @@ function PayCheckFunc() $pay_check = $db->getRow("select * from orders where status = ? and order_number is not null order by paycheck_time asc", [ 1, ]); - if (!!$pay_check ) { + if (!!$pay_check and strtotime($pay_check['paycheck_time'])>strtotime($pay_check['created_at']) + 60) { Db2::u($db, 'orders', [ 'paycheck_time' => date('Y-m-d H:i:s'), ], 'where id = ?', [