glhcp/server/app/common/model/after_sale/AfterSaleLog.php

73 lines
2.9 KiB
PHP
Raw Normal View History

2023-08-10 06:59:52 +00:00
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\common\model\after_sale;
use app\common\basics\Models;
class AfterSaleLog extends Models
{
//售后操作人类型
const TYPE_USER = 0;//会员
const TYPE_SHOP = 1;//门店
//售后动作
const USER_APPLY_REFUND = 100;//会员申请售后
const USER_SEND_EXPRESS = 101;//会员发快递
const USER_CANCEL_REFUND = 102;//会员撤销售后
const USER_AGAIN_REFUND = 103;//会员重新提交申请
const SHOP_AGREE_REFUND = 104;//商家同意退款
const SHOP_REFUSE_REFUND = 105;//商家拒绝退款
const SHOP_TAKE_GOODS = 106;//商家收货
const SHOP_REFUSE_TAKE_GOODS = 107;//商家拒绝收货
const SHOP_CONFIRM_REFUND = 108;//商家确认退款
const REFUND_SUCCESS = 109;//退款成功
const REFUND_ERROR = 110;//退款失败
/**
* @notes 售后动作明细
* @param $log
* @return string|string[]
* @author suny
* @date 2021/7/13 6:39 下午
*/
public static function getLogDesc($log)
{
$desc = [
self::USER_APPLY_REFUND => '会员申请退款',
self::USER_SEND_EXPRESS => '会员填写退货物流信息',
self::USER_CANCEL_REFUND => '会员撤销售后申请',
self::USER_AGAIN_REFUND => '会员重新提交申请',
self::SHOP_AGREE_REFUND => '商家同意退款',
self::SHOP_REFUSE_REFUND => '商家拒绝退款',
self::SHOP_TAKE_GOODS => '商家收货',
self::SHOP_REFUSE_TAKE_GOODS => '商家拒绝收货',
self::SHOP_CONFIRM_REFUND => '商家确认退款',
self::REFUND_SUCCESS => '退款成功',
self::REFUND_ERROR => '退款失败',
];
if ($log === true){
return $desc;
}
return isset($desc[$log]) ? $desc[$log] : $log;
}
}