浏览代码

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

lizhen_gitee 1 年之前
父节点
当前提交
6f9e80d794
共有 1 个文件被更改,包括 1 次插入1 次删除
  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){