|
@@ -85,7 +85,7 @@ func InitCloudConfig() {
|
|
c_log.GlobalLogger.Error("执行获取sn码命令", command, "出错:", err)
|
|
c_log.GlobalLogger.Error("执行获取sn码命令", command, "出错:", err)
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
- c_log.GlobalLogger.Error("执行获取sn码命令", command, "成功,结果为:", snOutput)
|
|
|
|
|
|
+ c_log.GlobalLogger.Info("执行获取sn码命令", command, "成功,结果为:", snOutput)
|
|
snCode = strings.Replace(strings.Replace(snOutput, " ", "", -1), "\n", "", -1)
|
|
snCode = strings.Replace(strings.Replace(snOutput, " ", "", -1), "\n", "", -1)
|
|
LocalConfig.SecretKey = snCode
|
|
LocalConfig.SecretKey = snCode
|
|
LocalConfig.EquipmentNo = "pjibot-" + snCode
|
|
LocalConfig.EquipmentNo = "pjibot-" + snCode
|