ServiceGoodsClass.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用。
  9. * 任何企业和个人不允许对程序代码以任何形式任何目的再发布。
  10. * =========================================================
  11. */
  12. namespace addon\cardservice\event;
  13. use addon\cardservice\model\ServiceGoods;
  14. /**
  15. */
  16. class ServiceGoodsClass
  17. {
  18. /**
  19. * 活动展示
  20. * @return array
  21. */
  22. public function handle()
  23. {
  24. return [
  25. 'goods_class' => (new ServiceGoods())->getGoodsClass()['id'],
  26. 'goods_class_name' => (new ServiceGoods())->getGoodsClass()['name'],
  27. 'is_virtual' => 1,
  28. 'add_url' => 'cardservice://shop/service/addGoods',
  29. 'edit_url' => 'cardservice://shop/service/editGoods'
  30. ];
  31. }
  32. }