Browse Source

赠送礼物要单独自定义送出数量

lizhen_gitee 1 năm trước cách đây
mục cha
commit
6f9e80d794
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/Gift.php

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

@@ -36,7 +36,7 @@ class Gift extends Api
         $giftList = list_domain_image($giftList,['image','special']);
 
         //追加赠送数量
-        $gift_num = Db::name('gift_number')->select();
+        $gift_num = Db::name('gift_number')->order('number asc')->select();
         foreach($giftList as $key => &$val){
             $child = [];
             foreach($gift_num as $k => $num){