mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 04:52:50 +00:00
31 lines
560 B
PHP
31 lines
560 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @author: xaboy<365615158@qq.com>
|
|
* @day: 2017/11/13
|
|
*/
|
|
|
|
namespace app\admin\model\system;
|
|
|
|
use traits\ModelTrait;
|
|
use basic\ModelBasic;
|
|
|
|
/**
|
|
* 数据组model
|
|
* Class SystemGroup
|
|
* @package app\admin\model\system
|
|
*/
|
|
class SystemGroup extends ModelBasic
|
|
{
|
|
use ModelTrait;
|
|
|
|
/**
|
|
* 根据id获取当前记录中的fields值
|
|
* @param $id
|
|
* @return array
|
|
*/
|
|
public static function getField($id){
|
|
$fields = json_decode(self::where('id',$id)->value("fields"),true);
|
|
return compact('fields');
|
|
}
|
|
} |