setMovementEventCallFunc使用问题

有一个Armature 里面有23组动作 我首先播放了一组 然后调用setMovementEventCallFunc 来切换到第二组动作 结果一直崩

Armature* armature = Tools::getInstance()->getArmature("armatures/zhaoyun/zhaoyun.ExportJson", "zhaoyun");
    
    armature->getAnimation()->play("攻击1-斜方刺击");
    
    armature->setPosition(visibleSize.width/2,visibleSize.height/2-20);
    addChild(armature);
    
    std::function armatureFun = =](Armature* armature, MovementEventType type, const std::string& id)
    {
        if (type == MovementEventType::COMPLETE)
        {
            armature->getAnimation()->stop();
            armature->getAnimation()->play("攻击2_直线刺击");
        }
    };
    armature->getAnimation()->setMovementEventCallFunc(armatureFun);

```