瀏覽代碼

优惠券张数

lizhen_gitee 6 月之前
父節點
當前提交
7bfece866b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Index.php

+ 1 - 1
application/api/controller/Index.php

@@ -62,7 +62,7 @@ class Index extends Api
             //我拥有的
             $user_coupon = Db::name('unishop_coupon_user')->where('user_id',$this->auth->id)->column('coupon_id');
             //我没有的,可领取的
-            $coupon = Db::name('unishop_coupon')->field('id,title,least,value')
+            $coupon = Db::name('unishop_coupon')->field('id,title,least,value,number')
                 ->where('id','NOTIN',$user_coupon)
                 ->where('deletetime',NULL)
                 ->where('switch',1)