Parcourir la source

背包送礼物优化

lizhen_gitee il y a 1 an
Parent
commit
943d60e208
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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) {
                 if($is_back == 1) {
                     $giftback_ids = array_column($giftbackList,'id');
                     $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){
                     if(!$res1){
                         Db::rollback();
                         Db::rollback();
                         $this->error('背包送礼物失败');
                         $this->error('背包送礼物失败');