yangsai@163.com 9 months ago
parent 89d155c217
commit 77c0943e69
  1. 2
      app/common/model/Order.php
  2. 3
      app/store/model/OrderRefund.php

@ -182,7 +182,7 @@ class Order extends BaseModel
if ($data['receipt_status'] == ReceiptStatusEnum::NOT_RECEIVED) { if ($data['receipt_status'] == ReceiptStatusEnum::NOT_RECEIVED) {
return '待收货'; return '待收货';
} }
return $value; return empty($value)?'':$value;
} }
/** /**

@ -16,6 +16,7 @@ use app\api\service\User as UserService;
use app\common\enum\order\DeliveryStatus as DeliveryStatusEnum; use app\common\enum\order\DeliveryStatus as DeliveryStatusEnum;
use app\common\enum\order\DeliveryType; use app\common\enum\order\DeliveryType;
use app\common\enum\order\OrderStatus as OrderStatusEnum; use app\common\enum\order\OrderStatus as OrderStatusEnum;
use app\common\enum\order\ReceiptStatus;
use app\common\enum\order\refund\AuditStatus as AuditStatusEnum; use app\common\enum\order\refund\AuditStatus as AuditStatusEnum;
use app\common\enum\order\refund\RefundStatus as RefundStatusEnum; use app\common\enum\order\refund\RefundStatus as RefundStatusEnum;
use app\common\enum\order\refund\RefundType as RefundTypeEnum; use app\common\enum\order\refund\RefundType as RefundTypeEnum;
@ -25,6 +26,7 @@ use app\common\service\Message as MessageService;
use app\common\service\order\Refund as RefundService; use app\common\service\order\Refund as RefundService;
use app\store\model\User as UserModel; use app\store\model\User as UserModel;
use app\store\model\Order as OrderModel; use app\store\model\Order as OrderModel;
use app\store\model\OrderGoods as OrderGoodsMOdel;
/** /**
* 售后单模型 * 售后单模型
@ -320,6 +322,7 @@ class OrderRefund extends OrderRefundModel
} }
// 更新主订单状态为未发货 // 更新主订单状态为未发货
(new OrderModel)->update(['order_status'=>OrderStatusEnum::NORMAL,'delivery_status'=>DeliveryStatusEnum::NOT_DELIVERED],['order_id'=>$order['order_id']]); (new OrderModel)->update(['order_status'=>OrderStatusEnum::NORMAL,'delivery_status'=>DeliveryStatusEnum::NOT_DELIVERED],['order_id'=>$order['order_id']]);
(new OrderGoodsModel)->update(['delivery_status'=>DeliveryStatusEnum::NOT_DELIVERED],['order_id'=>$order['order_id']]);
// 发送消息通知 // 发送消息通知
MessageService::send('order.refund', [ MessageService::send('order.refund', [
'refund' => $this, // 售后单信息 'refund' => $this, // 售后单信息

Loading…
Cancel
Save