whitefang 1 рік тому
батько
коміт
abef92c4bc
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/api/logic/UserCouponLogic.php

+ 1 - 1
app/api/logic/UserCouponLogic.php

@@ -87,7 +87,7 @@ class UserCouponLogic extends BaseLogic
                 ->where(function(Query $query){
                 ->where(function(Query $query){
                     $query->where(' expire_time >'. (time()-86400*7));
                     $query->where(' expire_time >'. (time()-86400*7));
                 })
                 })
-                ->field(['id','amount','amount_require','begin_use','voucher_status','discount_ratio','event_name','expire_time','max_deductible_price','server_category_name','mold_type'])
+                ->field(['id','code','amount','amount_require','begin_use','voucher_status','discount_ratio','event_name','expire_time','max_deductible_price','server_category_name','mold_type'])
                 ->append(['voucher_status_text'])
                 ->append(['voucher_status_text'])
                 ->order(['id' => 'desc'])
                 ->order(['id' => 'desc'])
                 ->select()
                 ->select()