xieruidong 2 年之前
父节点
当前提交
111f436a70
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      application/common/model/Refund.php

+ 6 - 0
application/common/model/Refund.php

@@ -28,6 +28,7 @@ use Yansongda\Supports\Arr;
  * @property bool need_rec
  * @property bool need_tk
  * @property bool need_complete
+ * @property bool can_view_logistics
  * @property string audit_remark
  * @property string order_no
  * @property string fix_order_no
@@ -51,6 +52,7 @@ class Refund Extends Model
         'refund_type_text',
         'refund_by_text',
         'reason_text',
+        'can_view_logistics',
     ];
     const REFUND_ING=100;
     const REFUND_PASS=200;
@@ -423,6 +425,10 @@ class Refund Extends Model
     public function gethasMoneyAttr($_,$model){
         return $this->isRefundMoney();
     }
+    #是否可查看寄回物流
+    public function getCanViewLogisticsAttr($_,$model){
+        return $model['user_send_time'];
+    }
     #是否是需要寄回
     public function getIsGoodsBackAttr($_,$model){
         return $this->refund_status==self::REFUND_PASS && in_array($this->refund_type,self::getRefundTypeGoods());