PlatformController.class.php 819 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * lionfish 商城系统
  4. *
  5. * ==========================================================================
  6. * @link http://www.liofis.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license http://www.liofis.com/license.html License
  9. * ==========================================================================
  10. *
  11. * @author fish
  12. *
  13. */
  14. namespace Home\Controller;
  15. class PlatformController extends CommonController{
  16. public function material()
  17. {
  18. //is_seller_login()
  19. $do = I('get.do');
  20. if('delete' == $do)
  21. {
  22. $material_id = I('post.material_id');
  23. M('core_attachment')->where( array('id' => $material_id) )->delete();
  24. echo '{"message":{"errno":"0","message":"\u5220\u9664\u7d20\u6750\u6210\u529f"},"redirect":"","type":"ajax"}';
  25. die();
  26. }
  27. }
  28. }