steve07s 3 lat temu
rodzic
commit
1c26b72217
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3 3
      api-detail.php
  2. 1 1
      api-upload.php

+ 3 - 3
api-detail.php

@@ -204,10 +204,10 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 		const downloads = ["dll", "dyn", "exe", "msi"];
 		const videos = ["mp4", "m3u8", "ts", "avi"];
 		const hidden = ["png"];
-		if (webLink != null) {
-			$("#webLink").append("<a href='" + webLink + "' target='_blank'>" + source + "</a>");
-		} else if (webLink == null) {
+		if (webLink == null || webLink == '空') {
 			$("#webLink").append("<span>" + source + "</span>");
+		}else{
+			$("#webLink").append("<a href='" + webLink + "' target='_blank'>" + source + "</a>");
 		}
 
 		$(document).ready(function() {

+ 1 - 1
api-upload.php

@@ -204,7 +204,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
 															<a href="#" class="btn btn-default fileupload-exists" data-dismiss="fileupload">移除檔案</a>
 															<span class="help-block"><strong>注意事項:</strong>請選擇要上傳的資料夾,盡量不要有子資料夾,若有請壓縮後再上傳
 																<br>預覽縮圖請存成PNG,影片格式請使用.avi或.mp4
-																<br>(例:拖放元件)</span>
+																<br>預覽圖及影片名稱請與API名稱相同</span>
 														</div>
 													</div>
 												</div>