| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace app\admin\model;
- use app\BaseModel;
- class GuessAskLanguages extends BaseModel
- {
-
- protected $appends = ['type_text'];
- public function getTypeTextAttribute()
- {
- $list = self::typeList(false);
- return $list[$this->type] ?? '';
- }
-
- public static function typeList($select = true)
- {
- $list = [
- 1 => '问题',
- ];
- if ($select) {
- $list = getSelectData($list);
- }
- return $list;
- }
- }
|