Other.php 629 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\youzan\controller;
  3. use app\BaseController;
  4. use app\youzan\logic\Goodup;
  5. //(无需token,专门为了有赞项目调用的)
  6. class Other extends BaseController
  7. {
  8. //商品下架(有赞平台操作)
  9. public function goodOffLineByYouzan()
  10. {
  11. $item_no = $this->request->filter('trim')->post('item_no','');
  12. return Goodup::goodOffLineByYouzan($item_no);
  13. }
  14. //商品删除(有赞平台操作)
  15. public function goodDeleteByYouzan()
  16. {
  17. $item_no = $this->request->filter('trim')->post('item_no', '');
  18. return Goodup::goodDeleteByYouzan($item_no);
  19. }
  20. }