solve the problem of send message exception,but message sending sending in a wrong way
fixed ,too much codes makes me forget to call a function ,now it can work properly