WANG пре 5 година
родитељ
комит
2cb0d6caca

+ 2 - 2
src/main/java/cn/com/qmth/examcloud/web/upyun/UpyunService.java

@@ -43,9 +43,9 @@ public interface UpyunService {
 	 *
 	 * @author WANGWEI
 	 * @param siteId
-	 * @param env
+	 * @param filePath
 	 */
-	void delete(String siteId, UpyunPathEnvironmentInfo env);
+	void delete(String siteId, String filePath);
 
 	/**
 	 * 创建签名

+ 2 - 3
src/main/java/cn/com/qmth/examcloud/web/upyun/UpyunServiceImpl.java

@@ -50,13 +50,12 @@ public class UpyunServiceImpl implements UpyunService {
 	}
 
 	@Override
-	public void delete(String siteId, UpyunPathEnvironmentInfo env) {
+	public void delete(String siteId, String filePath) {
 
 		UpyunSite upyunSite = UpyunSiteManager.getUpyunSite(siteId);
 		UpYunClient upYunClient = UpyunSiteManager.getUpYunClientByUpyunId(upyunSite.getUpyunId());
 
-		String path = FreeMarkerUtil.process(upyunSite.getPath(), env);
-		upYunClient.deleteFile(path);
+		upYunClient.deleteFile(filePath);
 	}
 
 	@Override