多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] 比如我的电脑是:`192.168.2.113`。更改前无论是通过手机还是电脑都不能访问 http://192.168.2.113 # 一:wamp更改conf `httpd-vhost.conf` 更改,将此文件 ``` <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot "${INSTALL_DIR}/www" <Directory "${INSTALL_DIR}/www/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost> ``` 更改为 ``` <VirtualHost *:80> ServerName localhost ServerAlias localhost DocumentRoot "d:/application/tmc/public" <Directory "d:/application/tmc/public/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all </Directory> </VirtualHost> ``` 更改后重新启动wamp,通过电脑 http://192.168.2.113 可以访问本项目了 # 二:关闭防火墙 ![](https://box.kancloud.cn/36d309a90f9e25087e28f519c6db0d5c_628x432.png) 关闭后,确保手机可以通过IP访问电脑 http://192.168.2.113 # 三:在参数上加一个条件 更改前: ``` let param = { trip_details:trip_details, trip_users:trip_users, trip_order:trip_order }; ``` 更改后: ``` let param = { trip_details:trip_details, trip_users:trip_users, trip_order:trip_order }; param.XDEBUG_SESSION_START = 'PHPSTORM' ``` # PHPSTORM更改 ![](https://box.kancloud.cn/1a640e85d758e15ae95bc4040eea3dfd_613x312.png)