岩仔88 1 month ago
parent c85ef90c57
commit b3f6777936

@ -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 = ?', [

Loading…
Cancel
Save