123456789101112131415161718192021 |
- <?php
- namespace app\model;
- use think\Model;
- class CustomerPortraitField extends Model
- {
- // public function getSelectAttr($value)
- // {
- // if($value=='[]'|| $value==null) return;
- // $list=json_decode($value,true);
- // return $list;
- // }
- public function select()
- {
- return $this->hasMany(CustomerPortraitFieldSelect::class, 'pid','id');
- }
- }
|