Beispiel #1
0
        /// <summary>
        /// 发送普通短信 - 批量
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public async Task <OperationResult <int> > SendBatchSmsAsync(SendBatchCellphoneSmsRequest request)
        {
            var result = await _Client.SendBatchSmsAsync(request).ConfigureAwait(false);

            result.ThrowIfException(true);
            if (!result.Success)
            {
                _logger.Error($"SmsService SendBatchSmsAsync fail => ErrorCode ={result.ErrorCode} & ErrorMessage ={result.ErrorMessage}");
            }
            return(result);
        }