截流自动化的商城平台
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.

AfterSaleLog.php 2.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeshop开源商城系统
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | gitee下载:https://gitee.com/likeshop_gitee
  7. // | github下载:https://github.com/likeshop-github
  8. // | 访问官网:https://www.likeshop.cn
  9. // | 访问社区:https://home.likeshop.cn
  10. // | 访问手册:http://doc.likeshop.cn
  11. // | 微信公众号:likeshop技术社区
  12. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  13. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  14. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  15. // | likeshop团队版权所有并拥有最终解释权
  16. // +----------------------------------------------------------------------
  17. // | author: likeshop.cn.team
  18. // +----------------------------------------------------------------------
  19. namespace app\common\model\after_sale;
  20. use app\common\basics\Models;
  21. class AfterSaleLog extends Models
  22. {
  23. //售后操作人类型
  24. const TYPE_USER = 0;//会员
  25. const TYPE_SHOP = 1;//门店
  26. //售后动作
  27. const USER_APPLY_REFUND = 100;//会员申请售后
  28. const USER_SEND_EXPRESS = 101;//会员发快递
  29. const USER_CANCEL_REFUND = 102;//会员撤销售后
  30. const USER_AGAIN_REFUND = 103;//会员重新提交申请
  31. const SHOP_AGREE_REFUND = 104;//商家同意退款
  32. const SHOP_REFUSE_REFUND = 105;//商家拒绝退款
  33. const SHOP_TAKE_GOODS = 106;//商家收货
  34. const SHOP_REFUSE_TAKE_GOODS = 107;//商家拒绝收货
  35. const SHOP_CONFIRM_REFUND = 108;//商家确认退款
  36. const REFUND_SUCCESS = 109;//退款成功
  37. const REFUND_ERROR = 110;//退款失败
  38. /**
  39. * @notes 售后动作明细
  40. * @param $log
  41. * @return string|string[]
  42. * @author suny
  43. * @date 2021/7/13 6:39 下午
  44. */
  45. public static function getLogDesc($log)
  46. {
  47. $desc = [
  48. self::USER_APPLY_REFUND => '会员申请退款',
  49. self::USER_SEND_EXPRESS => '会员填写退货物流信息',
  50. self::USER_CANCEL_REFUND => '会员撤销售后申请',
  51. self::USER_AGAIN_REFUND => '会员重新提交申请',
  52. self::SHOP_AGREE_REFUND => '商家同意退款',
  53. self::SHOP_REFUSE_REFUND => '商家拒绝退款',
  54. self::SHOP_TAKE_GOODS => '商家收货',
  55. self::SHOP_REFUSE_TAKE_GOODS => '商家拒绝收货',
  56. self::SHOP_CONFIRM_REFUND => '商家确认退款',
  57. self::REFUND_SUCCESS => '退款成功',
  58. self::REFUND_ERROR => '退款失败',
  59. ];
  60. if ($log === true){
  61. return $desc;
  62. }
  63. return isset($desc[$log]) ? $desc[$log] : $log;
  64. }
  65. }