|
@@ -266,9 +266,9 @@ func getSnCode() (string, error) {
|
|
|
command = append(command, "sn")
|
|
|
_, snOutput, err := util.ExecuteSync(LocalConfig.RosparamPath, command...)
|
|
|
if err != nil {
|
|
|
- return "", errors.New("执行获取sn码命令" + util.ToString(command) + "出错:" + util.ToString(err))
|
|
|
+ return "", errors.New("执行获取sn码命令" + LocalConfig.RosparamPath + util.ToString(command) + "出错:" + util.ToString(err))
|
|
|
}
|
|
|
- c_log.GlobalLogger.Info("执行获取sn码命令", command, "成功,结果为:", snOutput)
|
|
|
+ c_log.GlobalLogger.Info("执行获取sn码命令", LocalConfig.RosparamPath, command, "成功,结果为:", snOutput)
|
|
|
snCode := strings.Replace(strings.Replace(snOutput, " ", "", -1), "\n", "", -1)
|
|
|
return snCode, nil
|
|
|
}
|