26 lines
558 B
PHP
26 lines
558 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace app\protects\service;
|
||
|
use app\core\Service;
|
||
|
/**
|
||
|
* 业务类服务
|
||
|
**/
|
||
|
class ServiceInfoService extends Service
|
||
|
{
|
||
|
public $table="service_info";
|
||
|
public function getAll($id="",$key=""){
|
||
|
$where=array();
|
||
|
if($id)$where['id']=$id;
|
||
|
if($key)$where['key']=$key;
|
||
|
$service_infoes=$this->db()->where($where)->select()->toArray();
|
||
|
return $service_infoes;
|
||
|
}
|
||
|
public function infoType(){
|
||
|
return [
|
||
|
1=>'加油卡',
|
||
|
2=>'话费',
|
||
|
3=>'权益'
|
||
|
];
|
||
|
}
|
||
|
|
||
|
}
|