예제 #1
0
        /// <summary>
        /// 发送接口
        /// </summary>
        /// <param name="msgSend"></param>
        /// <returns></returns>
        public MessageSendRes Message_Send(MessageSend msgSend)
        {
            msgSend.agentid = agentid;
            var rel = QyAPI.Message_Send(access_token, msgSend);

            if (IsAccessTokenError(rel))
            {
                rel = QyAPI.Message_Send(access_token, msgSend);
                IsAccessTokenError(rel, false);
            }
            return(rel);
        }