Order.php 939 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | A3Mall
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: xzncit <158373108@qq.com>
  8. // +----------------------------------------------------------------------
  9. namespace app\common\service\promotion;
  10. use app\common\service\Service;
  11. class Order extends Service {
  12. protected static $array = [
  13. "0"=>"满额打折",
  14. "1"=>"满额优惠金额",
  15. "2"=>"满额送积分",
  16. "3"=>"满额免运费"
  17. ];
  18. /**
  19. * 订单活动类型
  20. * @param string $type
  21. * @return string|string[]
  22. */
  23. public static function getActivityType($type=""){
  24. return isset(self::$array[$type]) ? self::$array[$type] : self::$array;
  25. }
  26. }