Merge pull request '1.28功能提交' (#104) from feature/add_item into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/104
master
郑永星 4 years ago
commit fec6edf48c

@ -364,14 +364,29 @@ class OldCountController extends \Think\Controller
foreach ($data as $key => $value) {
$statement_info = json_decode($value['statement_info'],true);
$statement_info[0]['game_list'][0]['fine'] = $value['fine'];
$statement_info[0]['game_list'][0]['reward'] = $value['reward'];
$statement_info[0]['fine'] = $value['fine'];
$statement_info[0]['reward'] = $value['reward'];
$statement_info = json_encode($statement_info);
M("company_lack_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]);
}
$data = M("company_statement_info","tab_")
->where("(fine > 0 or reward > 0) and company_type != 2")
->select();
foreach ($data as $key => $value) {
$statement_info = json_decode($value['statement_info'],true);
$statement_info[0]['fine'] = $value['fine'];
$statement_info[0]['reward'] = $value['reward'];
$statement_info = json_encode($statement_info);
M("company_statement_info","tab_")->where(['id'=>$value['id']])->save(['statement_info'=>$statement_info]);
}
echo "success";
}

Loading…
Cancel
Save