34 lines
679 B
PHP
34 lines
679 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace app\common\service;
|
||
|
|
|
||
|
|
use app\admin\validate\SysPortValidate;
|
||
|
|
use app\common\logic\SysPortLogic;
|
||
|
|
use app\common\traits\crud\CrudServiceTrait;
|
||
|
|
use app\common\model\SysPort;
|
||
|
|
use support\Request;
|
||
|
|
|
||
|
|
class SysPortService
|
||
|
|
{
|
||
|
|
|
||
|
|
protected $logic;
|
||
|
|
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
$this->logic = (new SysPortLogic());
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取系统list
|
||
|
|
*/
|
||
|
|
public function getList($params)
|
||
|
|
{
|
||
|
|
$where = [];
|
||
|
|
if(isset($params['scene']) && $params['scene']) {
|
||
|
|
if($params['scene'] == 'domestic'){
|
||
|
|
$where['country_id'] = 45;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return $this->logic->getList($where);
|
||
|
|
}
|
||
|
|
}
|