张洋 5 rokov pred
rodič
commit
32201cbb1b
1 zmenil súbory, kde vykonal 7 pridanie a 2 odobranie
  1. 7 2
      zhipuzi_pay_plugin/wnd/CShoukuanWnd.cpp

+ 7 - 2
zhipuzi_pay_plugin/wnd/CShoukuanWnd.cpp

@@ -445,7 +445,7 @@ LRESULT CShoukuanWnd::OnShoukuanSuccess(UINT uMsg, WPARAM wParam, LPARAM lParam,
 		wx_logo->SetVisible(true);
 		zhifubao_logo->SetVisible(false);
 	}
-	else if (m_fukuanma_type == 2)
+	else if (m_fukuanma_type == 2 || m_fukuanma_type == 3)
 	{
 		wx_logo->SetVisible(false);
 		zhifubao_logo->SetVisible(true);
@@ -538,7 +538,7 @@ void CShoukuanWnd::StartShoukuan()
 	std::string s_Fukuanma = CLewaimaiString::UnicodeToUTF8(ws_Fukuanma);
 
 	int length = s_Fukuanma.size();
-	if (length != 18)
+	if (length != 18 && length != 19)
 	{
 		pLabel->SetText(L"收款码格式不对,请检查后重新输入!");
 		pLabel->SetVisible(true);
@@ -579,6 +579,11 @@ void CShoukuanWnd::StartShoukuan()
 		//支付宝付款码
 		m_fukuanma_type = 2;
 	}
+	else if (s_Fukuanma.find("62") == 0)
+	{
+		//云闪付付款码
+		m_fukuanma_type = 3;
+	}
 	else
 	{
 		pLabel->SetText(L"收款码格式不对,请检查后重新输入!");