UnInstall.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. // +---------------------------------------------------------------------+
  3. // | NiuCloud | [ WE CAN DO IT JUST NiuCloud ]  |
  4. // +---------------------------------------------------------------------+
  5. // | Copy right 2019-2029 www.niucloud.com  |
  6. // +---------------------------------------------------------------------+
  7. // | Author | NiuCloud <niucloud@outlook.com>  |
  8. // +---------------------------------------------------------------------+
  9. // | Repository | https://github.com/niucloud/framework.git  |
  10. // +---------------------------------------------------------------------+
  11. namespace addon\replacebuy\event;
  12. /**
  13. * 应用卸载
  14. */
  15. class UnInstall
  16. {
  17. /**
  18. * 执行卸载
  19. */
  20. public function handle()
  21. {
  22. /* try{
  23. execute_sql('addon/discount/data/uninstall.sql');
  24. return success();
  25. }catch (\Exception $e)
  26. {
  27. return error('', $e->getMessage());
  28. } */
  29. return error("系统插件不能删除");
  30. }
  31. }