1店铺登录逻辑优化 2备货单查询显示

This commit is contained in:
wule committed 2025-07-01 18:58:51 +08:00
1 parent 89eb9ce9d4
commit 862ad088f5
216 files changed
+3481 -1543

No files matched your search

+6 -6
View File
@@ -3,7 +3,7 @@ using AllBase.Helper;
using AllBase.Model.Result;
using CefSharp;
using CefSharp.WinForms;
using LittleRabbit.LittleRabbitForms.BaseForms;
using TemuKJD.KJDForms.BaseForms;
using NaiBa.CefHelper;
using NaiBa.CefHelper.Handler;
using System;
@@ -19,7 +19,7 @@ using System.Windows.Forms;
using Work;
using Work.BLL.Tools;
namespace LittleRabbit.LittleRabbitForms.ShopForms
namespace TemuKJD.KJDForms.ShopForms
{
public partial class ShopAuthForm : LRBaseForm
{
@@ -42,7 +42,7 @@ namespace LittleRabbit.LittleRabbitForms.ShopForms
{
var url = BaseClass.BuildObjString("shop&act=add_shop_agent_name");
var data = UserLogin.GetSignaturex()
+ "&shop_id=" + shop.ShopAccountId
+ "&shop_id=" + shop.ShopId
+ "&agent_name=" + BaseClass.AgentName;
var result = GetHtml.PostUtf8(url, data);
@@ -113,7 +113,7 @@ namespace LittleRabbit.LittleRabbitForms.ShopForms
if (res != null && res.StartsWith("授权成功") && res.EndsWith(shop.ShopAccount))
{
//shop.ApiAuthStatus = "授权成功";
ShopListForm.UpdateShopTokens(GlobalConfig.DouShopLoginList.Where(s => s.ShopAccount == shop.ShopAccount).ToList());
ShopListForm.UpdateShopTokens(GlobalConfig.ShopLoginList.Where(s => s.ShopAccount == shop.ShopAccount).ToList());
StartUp.SaveLocalShopLoginInfo();
OnSaveComplete(shop);
if (this.Created && this.chkCloseAfterLogin.Checked)
@@ -133,7 +133,7 @@ namespace LittleRabbit.LittleRabbitForms.ShopForms
if (this.Created && this.chkCloseAfterLogin.Checked)
{
ShopListForm.UpdateShopTokens(GlobalConfig.DouShopLoginList.Where(s => s.ShopAccount == shop.ShopAccount).ToList());
ShopListForm.UpdateShopTokens(GlobalConfig.ShopLoginList.Where(s => s.ShopAccount == shop.ShopAccount).ToList());
StartUp.SaveLocalShopLoginInfo();
OnSaveComplete(shop);
Thread.Sleep(2000);
@@ -233,7 +233,7 @@ namespace LittleRabbit.LittleRabbitForms.ShopForms
var data = responseData;
if (this.shop != null && data.Contains("\"code\":0"))
{
shop.ShopAccountId = BaseRegex.GetStringJson(ref data, "id");
shop.ShopId = BaseRegex.GetStringJson(ref data, "id");
shop.ShopToken = BaseRegex.GetStringJson(ref data, "token");
shop.ShopAccount = BaseRegex.GetStringJson(ref data, "shop_name");
shop.Mobile = BaseRegex.GetStringJson(ref data, "mobile");