脚本应用程序URL与网络应用程序URL不同 [英] The script app URL is different than web app URL
本文介绍了脚本应用程序URL与网络应用程序URL不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试获取当前Web应用程序URL"的Url
.
I am trying to get the Url
of the "current web app URL".
当我使用代码时:
function test(){
var $url = ScriptApp.getService().getUrl();
Logger.log($url);
}
这显示的URL与单击发布->作为Web应用程序部署->当前Web应用程序URL"后看到的URL不同.
This shows the URL which is different than the URL I see after I click on "Publish->Deploy as web app->Current web app URL".
我尝试查看文档,但似乎代码是正确的.
I tried looking in the documentation, but it seems like the code is correct.
推荐答案
您只需要使用新版本来部署应用程序,以便项目可以更新代码和配置.
You just needed to deploy the app with a new version so the project could update the code and configuration.
这篇关于脚本应用程序URL与网络应用程序URL不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文