解決動靜分離架構後臺重定向頁面問題

caox_90發表於2016-10-28

靜態html檔案部署在與伺服器分離的另一環境中,使用nginx反向代理,當後臺要返回到某個特定頁面的時候可使用返回html頁面內容的形式來實現請求頁面的功能。

String result = "<!DOCTYPE><html><head><script type=\"text/javascript\">window.location.href = \"http://wap.laputadoll.cn/loginWechat.html?appId="+officialid+"&openId="+openid+"\";</script></head></html>";
return result;

相關文章