lizhen_gitee 6 mesi fa
parent
commit
7bfece866b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)