FXSend/SmsSend.cpp
lujiang 53133d3841 1、增加签名校验功能,在TD2Signature表中有的记录才允许发送。
2、CSgip,修改了发送规则,断连时等到连接恢复后再发送短信
2025-03-19 16:47:14 +08:00

69 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// SmsSend.cpp : 实现文件
//
#include "stdafx.h"
#include "FXSend.h"
#include "SmsSend.h"
#include "afxdialogex.h"
// CSmsSend 对话框
IMPLEMENT_DYNAMIC(CSmsSend, CDialogEx)
CSmsSend::CSmsSend(CWnd* pParent /*=NULL*/)
: CDialogEx(CSmsSend::IDD, pParent)
{
m_strMobile = _T("");
m_strMsg = _T("");
m_strSubNum = _T("");
}
CSmsSend::~CSmsSend()
{
}
void CSmsSend::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Text(pDX, IDC_SMSSEND_MOBILE, m_strMobile);
DDV_MaxChars(pDX, m_strMobile, 200);
DDX_Text(pDX, IDC_SMSSEND_MSG, m_strMsg);
DDV_MaxChars(pDX, m_strMsg, 1000);
DDX_Text(pDX, IDC_SMSSEND_SUBNUM, m_strSubNum);
DDV_MaxChars(pDX, m_strSubNum, 10);
}
BEGIN_MESSAGE_MAP(CSmsSend, CDialogEx)
ON_BN_CLICKED(IDOK, &CSmsSend::OnBnClickedOk)
END_MESSAGE_MAP()
// CSmsSend 消息处理程序
BOOL CSmsSend::OnInitDialog()
{
CDialogEx::OnInitDialog();
m_strMobile=_T("13922455188");
m_strMsg=_T("【广州首易】本次操作验证码是7236235分钟有效如非本人操作请忽略。");
UpdateData(false);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}
void CSmsSend::OnBnClickedOk()
{
if ( !UpdateData(true) )
return ;
CDialogEx::OnOK();
}