123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace app\models\system;
- use crmeb\basic\BaseModel;
- use crmeb\traits\ModelTrait;
- class SystemGroupData extends BaseModel
- {
- use ModelTrait;
-
- public static function getDateValue($id)
- {
- $value = self::alias('a')->where(array("id" => $id))->find();
- if (!$value) {
- return false;
- }
- $data["id"] = $value["id"];
- $fields = json_decode($value["value"], true);
- foreach ($fields as $index => $field) {
- $data[$index] = $field["value"];
- }
- return $data;
- }
- }
|