优化跟随

master
chenzhi 4 years ago
parent c137a10c8f
commit 3efc4daee6

@ -19,9 +19,8 @@ class OldCountController extends \Think\Controller
foreach ($p_res as $k => $v) { foreach ($p_res as $k => $v) {
if(!empty($v['game_ids'])){ if(!empty($v['game_ids'])){
$savedata =["company_id"=>$v['id'] ];
$savedata['game_ids'] = $this->changeRelationGameidToGameid($v['game_ids']); $savedata['game_ids'] = $this->changeRelationGameidToGameid($v['game_ids']);
$Promote->save($savedata); $Promote->where(["company_id"=>$v['id']])->save($savedata);
} }
} }
echo "changeCompanyGameidToPromoteGameid success"; echo "changeCompanyGameidToPromoteGameid success";

Loading…
Cancel
Save