get('id'); $type = Request()->get('tyep'); $msg='合同不存在'; if(empty($type)){ $msg='参数错误'; } if ($id && $type) { $find = Db::name('contract')->where('id', $id)->find(); if ($find && $find['url']) { $url = json_decode($find['url'], true); if(isset($url[$type])){ return redirect($url[$type]); } } } return '

:)

'.$msg.'

'; } }