���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/tie.cx/app/models/Plan.php
���ѧ٧ѧ�
<?php namespace Altum\Models; class Plan extends Model { public function get_plan_by_id($plan_id) { switch($plan_id) { case 'free': return settings()->plan_free; break; case 'trial': return settings()->plan_trial; break; case 'custom': return settings()->plan_custom; break; default: $plan = db()->where('plan_id', $plan_id)->getOne('plans'); if(!$plan) { return settings()->plan_custom; } $plan->settings = json_decode($plan->settings); return $plan; break; } } public function get_plan_taxes_by_taxes_ids($taxes_ids) { $taxes_ids = json_decode($taxes_ids); if(empty($taxes_ids)) { return null; } $taxes_ids = implode(',', $taxes_ids); $taxes = []; $result = database()->query("SELECT * FROM `taxes` WHERE `tax_id` IN ({$taxes_ids})"); while($row = $result->fetch_object()) { /* Country */ $row->countries = json_decode($row->countries); $taxes[] = $row; } return $taxes; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�