|
@@ -25,6 +25,7 @@ type DingTalkRobotNodeConfig struct {
|
|
|
}
|
|
|
|
|
|
func (d *DingTalkRobotNode) Init(ctx ruleEngine.Context, config string) error {
|
|
|
+ fmt.Printf("初始化钉钉机器人节点---------------\n")
|
|
|
d.pool = grpool.New(10)
|
|
|
if config == "" {
|
|
|
d.config = &DingTalkRobotNodeConfig{
|
|
@@ -45,6 +46,7 @@ func (d *DingTalkRobotNode) Init(ctx ruleEngine.Context, config string) error {
|
|
|
}
|
|
|
|
|
|
func (d *DingTalkRobotNode) OnMessage(ctx ruleEngine.Context, message *protocol.Message) error {
|
|
|
+ fmt.Printf("执行钉钉机器人节点--------------\n")
|
|
|
body, err := d.newBody(message)
|
|
|
if body == nil {
|
|
|
return nil
|