Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
b59ac8ac
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b59ac8ac
编写于
7月 06, 2023
作者:
Z
zhaoke
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* Fix fetch options error.
上级
bbae0816
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
6 deletion
+5
-6
.gitignore
.gitignore
+2
-0
internal/pkg/helper/exec/unit.go
internal/pkg/helper/exec/unit.go
+2
-0
internal/pkg/helper/zentao/bug.go
internal/pkg/helper/zentao/bug.go
+1
-6
未找到文件。
.gitignore
浏览文件 @
b59ac8ac
...
...
@@ -76,3 +76,5 @@ test/cli/docker/
cmd/test/restapi/allure-results/
cmd/test/restapi/result.json
cmd/test/restapi/result.zip
cmd/test/result.json
cmd/test/result.zip
internal/pkg/helper/exec/unit.go
浏览文件 @
b59ac8ac
...
...
@@ -150,6 +150,7 @@ func printStdout(stdout io.ReadCloser, ch chan int, cmd *exec.Cmd, key string, w
for
{
line
,
err3
:=
reader1
.
ReadString
(
'\n'
)
if
line
!=
""
{
line
=
stringUtils
.
Convert2Utf8IfNeeded
(
line
)
websocketHelper
.
SendOutputMsgIfNeed
(
line
,
""
,
iris
.
Map
{
"key"
:
key
},
wsMsg
)
logUtils
.
ExecConsole
(
1
,
line
)
logUtils
.
ExecFile
(
line
)
...
...
@@ -189,6 +190,7 @@ func printStderr(isTerminal bool, stderr io.ReadCloser, key string, wsMsg *webso
if
err2
!=
nil
||
io
.
EOF
==
err2
{
break
}
line
=
stringUtils
.
Convert2Utf8IfNeeded
(
line
)
errOutputArr
=
append
(
errOutputArr
,
line
)
}
}
...
...
internal/pkg/helper/zentao/bug.go
浏览文件 @
b59ac8ac
...
...
@@ -244,12 +244,7 @@ func GetBugFiledOptions(config commDomain.WorkspaceConf, productId int) (
return
}
jsn
,
err
:=
simplejson
.
NewJson
(
bytes
)
if
err
!=
nil
{
err
=
ZentaoRequestErr
(
url
,
commConsts
.
ResponseParseErr
.
Message
)
return
}
fmt
.
Println
(
jsn
)
bytes
=
[]
byte
(
strings
.
Replace
(
string
(
bytes
),
`"modules":["\/"]`
,
`"modules":{"0":"\/"}`
,
1
))
err
=
json
.
Unmarshal
(
bytes
,
&
bugOptionsWrapper
)
if
err
!=
nil
{
err
=
ZentaoRequestErr
(
url
,
commConsts
.
ResponseParseErr
.
Message
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录