BaseMarketing.php 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace common\logic\order\marketing;
  3. use common\traits\ErrorTrait;
  4. use Exception;
  5. abstract class BaseMarketing{
  6. use ErrorTrait;
  7. public $marketing = [
  8. 'give' => [
  9. 'score' =>[
  10. 'give_val' => 10
  11. ],
  12. ],
  13. 'deduct' => [
  14. 'score' => [
  15. 'name' => '积分',
  16. 'deduct_val' => 100,
  17. 'money' => 1
  18. ],
  19. 'shipping_fee' => [
  20. 'name' => '运费',
  21. 'money' => 10
  22. ],
  23. 'full_reduce' => [
  24. 'name' => '满减',
  25. 'money' => 10
  26. ],
  27. ]
  28. ];
  29. public $isNewRecord = false; // 是否是新增操作
  30. /**
  31. * 执行
  32. * @Author bing
  33. * @DateTime 2021-09-23 09:46:41
  34. * @copyright: Copyright (c) 2020 广东七件事集团
  35. * @param $form
  36. * @return
  37. */
  38. abstract public function execute($form);
  39. }