Exemple #1
0
        /// <summary>
        /// 启动发送短信
        /// </summary>
        public void SetA1(string text)
        {
            ControlDetailForPage ctobj = this.Tag as ControlDetailForPage;

            if (string.IsNullOrEmpty(_currentType))
            {
                string typecode = ctobj.d5;
                _currentType = typecode.Equals("1") ? smsType.phone.ToString() : smsType.email.ToString();
            }
            var result = _smsController.DealWithSMS(_currentType, _currentPhoneNumber, _currentCode);

            if (result.Result)
            {
                //发送成功后做的事情
            }
            else
            {
                //发送失败后做的事情
            }

            //if (_smsController.DealWithSMS(_currentType, _currentPhoneNumber, _currentCode))
            //{
            //    DecoderAssistant.CallEventDerectly(ctobj.p9, this);
            //}
            //else
            //{
            //    DecoderAssistant.CallEventDerectly(ctobj.p12, this);
            //}
        }