代理+1 代理提现利润统计 二维码拿掉。 代理积分消耗情况统计
This commit is contained in:
1 parent
558c87897e
commit
bd3040efa3
69 files changed
+19415
-7071
No files matched your search
@@ -1,4 +1,7 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util.Extension;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -11,6 +14,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.BLL;
|
||||
using TemuKJD.KJDForms.ShopForms;
|
||||
using Work;
|
||||
using Work.BLL.Tools;
|
||||
@@ -61,28 +65,57 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
|
||||
private void WXGetTopUpQrCode_Load(object sender, EventArgs e)
|
||||
{
|
||||
//if (BaseClass.AgentCode.IsNullOrEmpty() && BaseClass.OemId.IsNullOrEmpty())
|
||||
// this.pictureBox1.Visible = false;
|
||||
|
||||
Task.Run(() => { refreshQrcode(); });
|
||||
}
|
||||
|
||||
private void btnAddPoints_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Process.Start(new ProcessStartInfo("https://excashier.alipay.com/standard/auth.htm?payOrderId=5afc56d40af64001ad2a486cce1ca579.25") { UseShellExecute = true });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// 处理可能出现的异常,例如找不到浏览器等
|
||||
MessageBox.Show("无法打开浏览器: " + ex.Message);
|
||||
}
|
||||
}
|
||||
// 打开外部浏览器
|
||||
//try
|
||||
//{
|
||||
// Process.Start(new ProcessStartInfo("https://excashier.alipay.com/standard/auth.htm?payOrderId=5afc56d40af64001ad2a486cce1ca579.25") { UseShellExecute = true });
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// // 处理可能出现的异常,例如找不到浏览器等
|
||||
// MessageBox.Show("无法打开浏览器: " + ex.Message);
|
||||
//}
|
||||
|
||||
private void btnAddBalance_Click(object sender, EventArgs e)
|
||||
{
|
||||
ShopLoginForm loginForm = new ShopLoginForm(new AllBase.Model.Result.ShopLoginInfo());
|
||||
loginForm.InitUrl = "https://excashier.alipay.com/standard/auth.htm?payOrderId=5afc56d40af64001ad2a486cce1ca579.25";
|
||||
loginForm.openType = KJDForms.ShopForms.EnumOpenType.manage;
|
||||
loginForm.ShowDialog();
|
||||
string url2 = "https://po.e57.cn/prod-api/api/oms-api/alipay/pay";
|
||||
var data = new JObject();
|
||||
data["userId"] = BaseClass.UserId;
|
||||
data["userName"] = BaseClass.UserName; // 用户名
|
||||
data["nickName"] = BaseClass.NickName; // 用户名
|
||||
data["totalAmount"] = numAddPoints.Value; // 金额点数
|
||||
data["type"] = 2; // type:1:快递余额,2:账户积分
|
||||
var dataStr2 = JsonHelper.SerializeObject(data);
|
||||
var html2 = WXHttpResponseBLL.e57PostResponse(url2, dataStr2, "");
|
||||
//<AjaxResult><msg>支付订单创建成功</msg><code>200</code><data><form name="punchout_form" method="post" action="https://openapi.alipay.com/gateway.do?charset=UTF-8&method=alipay.trade.page.pay&sign=Z7%2Bv3UQL3B9Q9nH1iNGimA9FL9XPcG9A2oyjTpLbyExJbw52tHEX1LXifNrdJLtBdSjAQaFNyc3qzKUn3J6algYUlcy9e5DMKIG1NPQGSn3FFoSiKM%2FfSKlx8Jbj3zC2JFQAvUoFVUnk89pen078rh2IL2XKNaD300VDq28WiAAE3fX%2FHdd5Tu%2F3yun4tD90KOXzVQ2PFrcQqwefo2Bm%2BQVFCGXM5zxzE%2FvfkHnCwGwlH%2FfLrdsKrQc3s%2B1Gt1NHlS3iyKEP%2F4F7dKB9Iq0GIsyPJu9RINv9XRlk404S60gDRHBHs3avWdMwjMRkoxIdoe%2BPrXX0zxYEEN9hAX5C%2Fw%3D%3D&return_url=https%3A%2F%2Fpo.e57.cn&notify_url=https%3A%2F%2Fpo.e57.cn%2Fprod-api%2Fapi%2Foms-api%2Falipay%2Fnotify&version=1.0&app_id=2021006172644180&sign_type=RSA2&timestamp=2026-07-20+11%3A59%3A55&alipay_sdk=alipay-sdk-java-4.40.909.ALL&format=JSON">
|
||||
//<input type="hidden" name="biz_content" value="{&quot;out_trade_no&quot;:&quot;8f6ece19baf14f7ca8b0b5d8d0c03b57&quot;,&quot;total_amount&quot;:&quot;0.01&quot;,&quot;subject&quot;:&quot;店统领余额充值&quot;,&quot;body&quot;:&quot;店统领余额充值&quot;,&quot;product_code&quot;:&quot;FAST_INSTANT_TRADE_PAY&quot;,&quot;timeout_express&quot;:&quot;15m&quot;}">
|
||||
//<input type="submit" value="立即支付" style="display:none" >
|
||||
//</form>
|
||||
//<script>document.forms[0].submit();</script></data></AjaxResult>
|
||||
if (html2.Contains("<code>200</code>") || html2.Contains("<code>0</code>"))
|
||||
{
|
||||
var rstData = BaseRegex.GetStringXml(ref html2, "data").ParseToString();
|
||||
rstData = HttpUtility.HtmlDecode(rstData);
|
||||
//rstData = HttpUtility.HtmlDecode(rstData);
|
||||
|
||||
WXShopLoginForm loginForm = new WXShopLoginForm(new ShopLoginInfo());
|
||||
loginForm.InitUrl = "";
|
||||
loginForm.InitHtml = rstData;
|
||||
loginForm.openType = EnumOpenType.manage;
|
||||
loginForm.ShowDialog();
|
||||
|
||||
|
||||
//if (updateBalanceAction != null)
|
||||
//{
|
||||
// updateBalanceAction();
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user