/// <summary>
        /// 获取事件ID
        /// </summary>
        /// <param name="cusOptions">渠道自定义选项</param>
        /// <returns>事件ID</returns>
        public static string GetEventId(this ChannelCustomerOptions cusOptions)
        {
            if (cusOptions == null || !cusOptions.IsAddEventId)
            {
                return(null);
            }

            string eventId = cusOptions.ComData != null ? cusOptions.ComData.EventId : null;

            if (string.IsNullOrWhiteSpace(eventId) && App.GetEventIdFunc != null)
            {
                eventId = App.GetEventIdFunc();
            }

            return(eventId);
        }
        /// <summary>
        /// 获取token
        /// </summary>
        /// <param name="cusOptions">渠道自定义选项</param>
        /// <returns>token</returns>
        public static string GetToken(this ChannelCustomerOptions cusOptions)
        {
            if (cusOptions == null || !cusOptions.IsAddToken)
            {
                return(null);
            }

            string token = cusOptions.ComData != null ? cusOptions.ComData.Token : null;

            if (string.IsNullOrWhiteSpace(token) && (cusOptions.GetTokenFunc != null || App.GetTokenFunc != null))
            {
                token = cusOptions.GetTokenFunc != null?cusOptions.GetTokenFunc() : App.GetTokenFunc();
            }

            return(token);
        }