|
|
|
@ -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", [
|
|
|
|
$pay_check = $db->getRow("select * from orders where status = ? and order_number is not null order by paycheck_time asc", [
|
|
|
|
1,
|
|
|
|
1,
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
if (!!$pay_check ) {
|
|
|
|
if (!!$pay_check and strtotime($pay_check['paycheck_time'])>strtotime($pay_check['created_at']) + 60) {
|
|
|
|
Db2::u($db, 'orders', [
|
|
|
|
Db2::u($db, 'orders', [
|
|
|
|
'paycheck_time' => date('Y-m-d H:i:s'),
|
|
|
|
'paycheck_time' => date('Y-m-d H:i:s'),
|
|
|
|
], 'where id = ?', [
|
|
|
|
], 'where id = ?', [
|
|
|
|
|