if($zh = $this->_param('zh','htmlspecialchars')){
$Shoptui->where('status=1')->setField('reward',$zh);
$listz = $Shoptui->where('status=1')->select();
$log_idsz = array();
foreach($listz as $val){
$log_idsz['mi'] = $val['reward'] * $val['block'];
$log_idsz['set_id'] = $val['set_id'];
$Shoptui->save($log_idsz);
}
$this->assign('zh',$zh);
}