From 3efc4daee6bd0b8e5ae305c7635d7d7d061a5904 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 19 Aug 2020 18:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=9F=E9=9A=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/OldCountController.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Application/Admin/Controller/OldCountController.class.php b/Application/Admin/Controller/OldCountController.class.php index 1ba51b2b5..54c2d3f97 100644 --- a/Application/Admin/Controller/OldCountController.class.php +++ b/Application/Admin/Controller/OldCountController.class.php @@ -19,9 +19,8 @@ class OldCountController extends \Think\Controller foreach ($p_res as $k => $v) { if(!empty($v['game_ids'])){ - $savedata =["company_id"=>$v['id'] ]; $savedata['game_ids'] = $this->changeRelationGameidToGameid($v['game_ids']); - $Promote->save($savedata); + $Promote->where(["company_id"=>$v['id']])->save($savedata); } } echo "changeCompanyGameidToPromoteGameid success";