1234567891011121314151617181920212223242526272829 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
- // +----------------------------------------------------------------------
- // | Author:kane < chengjin005@163.com>
- // +----------------------------------------------------------------------
- namespace app\teahouse\model;
- use think\Model;
- class LockUserModel extends Model
- {
- public static $SEX = ['未知', '男', '女'];
- public static $STATUS = [1 => '待审核', 2 => '通过', 3 => '拒绝'];
- public function getSexTextAttr($value, $data)
- {
- return self::$SEX[$data['sex']];
- }
- public function getStatusTextAttr($value, $data)
- {
- return self::$STATUS[$data['status']];
- }
- }
|