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";