Common.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\controller;
  12. use service\UtilService;
  13. class Common extends AuthController
  14. {
  15. /**
  16. * 删除原来图片
  17. * @param $url
  18. */
  19. public function rmPublicResource($url)
  20. {
  21. $res = UtilService::rmPublicResource($url);
  22. if ($res->status)
  23. return $this->successful('删除成功!');
  24. else
  25. return $this->failed($res->msg);
  26. }
  27. }