소스 검색

我的优惠卷

whitefang 2 년 전
부모
커밋
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()