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