萤火科技 1 год назад
Родитель
Сommit
8a8b38af51
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/common/model/Coupon.php

+ 1 - 0
app/common/model/Coupon.php

@@ -43,6 +43,7 @@ class Coupon extends BaseModel
      */
      */
     public function getStateAttr($value, array $data): array
     public function getStateAttr($value, array $data): array
     {
     {
+        // mix: is_receive不是数据库字段, 来源于 setIsReceive方法
         if (isset($data['is_receive']) && $data['is_receive']) {
         if (isset($data['is_receive']) && $data['is_receive']) {
             return ['text' => '已领取', 'value' => 0];
             return ['text' => '已领取', 'value' => 0];
         }
         }