|
@@ -289,18 +289,24 @@ class Dcquery extends Controller
|
|
|
}else{
|
|
|
//获取ip
|
|
|
$ip = $this->getIpbyAddress($address);
|
|
|
- if(in_array($ip,json_decode(LC_IPS,TRUE))) {
|
|
|
+ if(in_array($ip,json_decode(LC_WAN_IPS,TRUE))) {
|
|
|
//浪潮政务云访问
|
|
|
return "dicomweb://$address/$remote_url";
|
|
|
}
|
|
|
- if($status & STATUS_LOCAL) {
|
|
|
+ if(in_array($ip,json_decode(LC_LAN_IPS,TRUE))) {
|
|
|
+ if($status & STATUS_LOCAL) {
|
|
|
//内网url有效
|
|
|
- return "dicomweb://$address/$local_url";
|
|
|
+ return "dicomweb://$address/$local_url";
|
|
|
+ }
|
|
|
+ if($status & STATUS_REMOTE) {
|
|
|
+ //外网url有效
|
|
|
+ return "dicomweb://$address/".REMOTE_FLAG."/$remote_url";
|
|
|
+ }
|
|
|
}
|
|
|
- if($status & STATUS_REMOTE) {
|
|
|
- //外网url有效
|
|
|
- return "dicomweb://$address/".REMOTE_FLAG."/$remote_url";
|
|
|
+ if($status & (STATUS_LOCAL | STATUS_REMOTE)) {
|
|
|
+ return "dicomweb://$address/$url";
|
|
|
}
|
|
|
+ //浪潮政务云访问
|
|
|
return null;
|
|
|
}
|
|
|
}
|