登录
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user