由於研發,測試,生產環境不同,回饋問題經常無法正確定位環境,可在WEB介面的顯著位置顯示目前的環境
public static function getGitinfo()
{<script></script>
var content = '{{ getGitinfo() }} ';var div = document.createElement("div");
div.style = "font-size:24px; position: absolute;background:#ee6666;padding-left:20px;";div .innerHTML = content;
var first=document.body.firstChild;
document.body.insertBefore(div,first);
@endif
@endif