|
|
@@ -121,8 +121,12 @@ func CreateFlowByTemplateDirectly(tmplateName string, userType int,
|
|
|
logger.GetLogger().Errorf("CreateFlowByTemplateDirectly, %v", err.Error())
|
|
|
return
|
|
|
}
|
|
|
- flowId = *resp["flowIds"][0]
|
|
|
- signUrl = *resp["urls"][0]
|
|
|
+ if len(resp["flowIds"]) > 0 {
|
|
|
+ flowId = *resp["flowIds"][0]
|
|
|
+ }
|
|
|
+ if len(resp["urls"]) > 0 {
|
|
|
+ signUrl = *resp["urls"][0]
|
|
|
+ }
|
|
|
|
|
|
// 更新电子签记录表信息状态
|
|
|
record.CONTRACTNO = flowId
|