Files
OMS/app/invoice/lib/order/front/router.php
2025-12-28 23:13:25 +08:00

44 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class invoice_order_front_router {
private $obj;
public function __construct($source)
{
try {
$objName = 'invoice_order_front_' . $source;
if (class_exists($objName)) {
$this->obj = kernel::single($objName);
}
} catch (Exception $e) {}
}
#获取主表特殊信息
public function getMain($main) {
$data = array();
if ($this->obj) {
$data = $this->obj->getMain($main);
}
return $data;
}
#获取明细信息
public function getItems($main) {
$data = array();
if ($this->obj) {
$data = $this->obj->getItems($main);
}
return $data;
}
#人工操作
public function operateTax($arr) {
$ret = array(true, ['msg'=>'操作完成']);
if ($this->obj) {
$ret = $this->obj->operateTax($arr);
}
return $ret;
}
}