Merge pull request #328 from agstrxyz/patch-17

Update cron.php
This commit is contained in:
iBNu Maksum 2024-10-21 07:29:47 +07:00 committed by GitHub
commit 1fe2dac580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,6 +53,9 @@ foreach ($d as $ds) {
$u = ORM::for_table('tbl_user_recharges')->where('id', $ds['id'])->find_one();
$c = ORM::for_table('tbl_customers')->where('id', $ds['customer_id'])->find_one();
$p = ORM::for_table('tbl_plans')->where('id', $u['plan_id'])->find_one();
if (empty($c)) {
$c = $u;
}
$dvc = Package::getDevice($p);
if ($_app_stage != 'demo') {
if (file_exists($dvc)) {