Dynamic sprite passed through static platform

hi everyone,
my problem is same as this question
but here i am jumping my sprite under gravity but after jump my sprite passes through platform
collision detection is working fine because if i through sprite under gravity without apply any jump its working fine and stay when reached at platform but i thing the main problem is in my sprite jump
my sprite is dynamic and platform is static.
here is my code

bool HelloWorld::jump(cocos2d::Sprite *target) { if (target->getNumberOfRunningActionsByTag(1) == 0) { auto jumpto=JumpTo::create(0.7,target->getPosition(),100,1); jumpto->setTag(1); target->runAction(jumpto); } }

please please please give me a solution…