截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OrderLogEnum.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace app\common\enum;
  3. class OrderLogEnum
  4. {
  5. //操作人类型
  6. const TYPE_USER = 0;//会员
  7. const TYPE_SHOP = 1;//门店
  8. const TYPE_SYSTEM = 2;//系统
  9. //订单动作
  10. const USER_ADD_ORDER = 101;//提交订单
  11. const USER_CANCEL_ORDER = 102;//取消订单
  12. const USER_DEL_ORDER = 103;//删除订单
  13. const USER_CONFIRM_ORDER = 104;//确认收货
  14. const USER_PAID_ORDER = 105;//支付订单
  15. const SHOP_CANCEL_ORDER = 201;//商家取消订单
  16. const SHOP_DEL_ORDER = 202;//商家删除订单
  17. const SHOP_DELIVERY_ORDER = 203;//商家发货
  18. const SHOP_CONFIRM_ORDER = 204;//商家确认收货
  19. const SHOP_VERIFICATION = 205;//商家提货核销
  20. const SYSTEM_CANCEL_ORDER = 301;//系统取消订单
  21. const SYSTEM_CONFIRM_ORDER = 302;//系统确认订单
  22. //订单动作明细
  23. public static function getLogDesc($log)
  24. {
  25. $desc = [
  26. OrderLogEnum::USER_ADD_ORDER => '会员提交订单',
  27. OrderLogEnum::USER_CANCEL_ORDER => '会员取消订单',
  28. OrderLogEnum::USER_DEL_ORDER => '会员删除订单',
  29. OrderLogEnum::USER_CONFIRM_ORDER => '会员确认收货',
  30. OrderLogEnum::USER_PAID_ORDER => '会员支付订单',
  31. OrderLogEnum::SHOP_CANCEL_ORDER => '商家取消订单',
  32. OrderLogEnum::SHOP_DEL_ORDER => '商家删除订单',
  33. OrderLogEnum::SHOP_DELIVERY_ORDER => '商家发货',
  34. OrderLogEnum::SHOP_CONFIRM_ORDER => '商家确认收货',
  35. OrderLogEnum::SHOP_VERIFICATION => '商家提货核销',
  36. OrderLogEnum::SYSTEM_CANCEL_ORDER => '系统取消订单',
  37. OrderLogEnum::SYSTEM_CONFIRM_ORDER => '系统确认订单',
  38. ];
  39. if ($log === true) {
  40. return $desc;
  41. }
  42. return isset($desc[$log]) ? $desc[$log] : $log;
  43. }
  44. }