Manage.php 721 B

12345678910111213141516171819202122232425
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | A3Mall
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: xzncit <158373108@qq.com>
  8. // +----------------------------------------------------------------------
  9. namespace app\common\models\system;
  10. use app\common\models\Model;
  11. class Manage extends Model {
  12. protected $name = "system_manage";
  13. public function getPurviewAttr($value){
  14. if($value == '-1'){
  15. return $value;
  16. }
  17. return json_decode($value,true);
  18. }
  19. }