Skip to content

Commit

Permalink
Merge pull request #1796 from actiontech/feat/dingtalk-execution
Browse files Browse the repository at this point in the history
feat:dingtalk support execution
  • Loading branch information
ColdWaterLW authored Sep 7, 2023
2 parents c54e165 + 439dcd3 commit b1c63ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sqle/pkg/im/im.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ func CreateApprove(id string) {

switch im.Type {
case model.ImTypeDingTalk:
if len(workflow.Record.Steps) == 1 || workflow.CurrentStep() == workflow.Record.Steps[len(workflow.Record.Steps)-1] {
newLog.Infof("workflow %v is the last step, no need to create approve instance", workflow.ID)
return
}

if workflow.CreateUser.Phone == "" {
newLog.Error("create user phone is empty")
return
Expand Down

0 comments on commit b1c63ff

Please sign in to comment.