单项目连接多数据库,相互读写,如何规避脏数据

UCenter如何与DZ前端用户数据修改打通?且不对数据库造成风险

nginx配置参考

server {
     listen       80; 
     server_name  www.uc.com;
     set  $root  /web/ucenter ;
     root $root;
 
     location / { 
         index index.php  index.html index.htm;
         if  (!-f $request_filename) {
             rewrite ^/(.*)$  /index .php?q=$1 last;
         }   
     }   
     include  /etc/nginx/conf .d /php .conf;
}

然后通过www.uc.com这个域名来访问ucenter用户中心。
Linux系统修改:/etc/hosts
windows系统修改:C:\Windows\System32\drivers\etc\hosts
添加映射关系,以后www.uc.com就跟192.168.1.9关联起来了。(类似屏蔽优酷广告的方法,也是通过修改hosts来实现的)