From 9303b69ea569bcb5e581147543a3fd58e90d0d25 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 20 八月 2020 20:05:23 +0800
Subject: [PATCH] add get buckets contrl

---
 service/SdkInstall.go |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/service/SdkInstall.go b/service/SdkInstall.go
index a223dbd..ce8c083 100644
--- a/service/SdkInstall.go
+++ b/service/SdkInstall.go
@@ -235,6 +235,13 @@
 											if _,cE := util.CopyDirByCmd(unPackPath+sdkType+"/models", "./"); cE != nil {
 												return false, cE
 											}
+											//鎷疯礉瀹屾垚鍚庡垹闄ibs涓媠dkType鏂囦欢澶逛笅models
+										}
+										if util.DirExists(libPath+sdkType+"/models") {
+											os.RemoveAll(libPath+sdkType+"/models")
+										}
+										if util.DirExists(libPath+sdkType+"/zconf") {
+											os.RemoveAll(libPath+sdkType+"/zconf")
 										}
 									} else {
 										logger.Debug("unTarGzE sdkType.tar.gz err:", unTarGzE)
@@ -282,9 +289,9 @@
 	cM,cEM := strconv.Atoi(curIVArr[1])
 	cL,cEL := strconv.Atoi(curIVArr[2])
 
-	dH,dEH := strconv.Atoi(curIVArr[0])
-	dM,dEM := strconv.Atoi(curIVArr[1])
-	dL,dEL := strconv.Atoi(curIVArr[2])
+	dH,dEH := strconv.Atoi(dstIVArr[0])
+	dM,dEM := strconv.Atoi(dstIVArr[1])
+	dL,dEL := strconv.Atoi(dstIVArr[2])
 	if cEH !=nil || cEM != nil || cEL != nil || dEH != nil ||dEM !=nil || dEL !=nil {
 		return false
 	}

--
Gitblit v1.8.0