LockUserModel.php 1.0 KB

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