this is what we do: because it is special, the website needs to be aimed at app users and private network users, which can only be accessed by dialing to the private network segment through vpn, while app users can access it through the public network. When you can only save it as the second relative path, and then get the image path, you can determine which configuration should be used according to the user ip, that is, add a prefix to the relative path, app users use domain name configuration, and private network users use private network configuration. Generally speaking, the latter is more flexible and scalable, which is recommended.

Menu