LockModel.php 880 B

1234567891011121314151617181920212223242526
  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 LockModel extends Model
  14. {
  15. public static $IS_SHOW = [
  16. 1 => "显示",
  17. 2 => "隐藏",
  18. ];
  19. public function getIsShowTextAttr($value, $data)
  20. {
  21. return self::$IS_SHOW[$data['is_show']];
  22. }
  23. }