瀏覽代碼

背包送礼物优化

lizhen_gitee 1 年之前
父節點
當前提交
943d60e208
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/api/controller/Party.php

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

@@ -1965,7 +1965,7 @@ class Party extends Api
                 if($is_back == 1) {
                     $giftback_ids = array_column($giftbackList,'id');
 
-                    $res1 = Db::name('gift_back')->where(["id"=>$giftback_ids])->delete();
+                    $res1 = Db::name('gift_back')->where('id','IN',$giftback_ids)->delete();
                     if(!$res1){
                         Db::rollback();
                         $this->error('背包送礼物失败');