BaseMarketing.php 975 B

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