diff --git a/DSWeb/Areas/Account/Controllers/Chfee_invoice_HangXinController.cs b/DSWeb/Areas/Account/Controllers/Chfee_invoice_HangXinController.cs index e92c8fb1..e21f90c5 100644 --- a/DSWeb/Areas/Account/Controllers/Chfee_invoice_HangXinController.cs +++ b/DSWeb/Areas/Account/Controllers/Chfee_invoice_HangXinController.cs @@ -1255,7 +1255,7 @@ namespace DSWeb.Areas.Account.Controllers } else if (head.INVITERFACE == "诺诺全电发票") { - var hx = 诺诺全电发票.getHelper(head.TAXCODE,head.COMPANYID); + var hx = 诺诺全电发票.getHelper(head); if (!hx.CanUse) { jsonRespose.Success = false; @@ -1498,7 +1498,7 @@ namespace DSWeb.Areas.Account.Controllers if (!checkresult.Success) return checkresult; var head = (ChInvoice_HangXin)checkresult.Data; - var hx = 诺诺全电发票.getHelper(head.TAXCODE, head.COMPANYID); + var hx = 诺诺全电发票.getHelper(head); if (!hx.CanUse) { jsonRespose.Success = false; @@ -1953,7 +1953,7 @@ namespace DSWeb.Areas.Account.Controllers } else if (head.INVITERFACE == "诺诺全电发票") { - var hx = 诺诺全电发票.getHelper(head.TAXCODE, head.COMPANYID); + var hx = 诺诺全电发票.getHelper(head); if (head.PTORRED == "2") { @@ -2111,7 +2111,7 @@ namespace DSWeb.Areas.Account.Controllers var result = new DBResult(); - var hx = 诺诺全电发票.getHelper(head.TAXCODE, head.COMPANYID); + var hx = 诺诺全电发票.getHelper(head); if (!hx.CanUse) { result.SetErrorInfo(hx.ERRORMSG); diff --git a/DSWeb/Areas/Account/Models/Chfee_invoice_HangXin/Chfee_Invoice.cs b/DSWeb/Areas/Account/Models/Chfee_invoice_HangXin/Chfee_Invoice.cs index 3a0c95f7..913930f9 100644 --- a/DSWeb/Areas/Account/Models/Chfee_invoice_HangXin/Chfee_Invoice.cs +++ b/DSWeb/Areas/Account/Models/Chfee_invoice_HangXin/Chfee_Invoice.cs @@ -2118,16 +2118,16 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin public class 诺诺全电发票 : HangXinRequestHelper { - public static 诺诺全电发票 getHelper(string taxnum,string CORPID) + public static 诺诺全电发票 getHelper(ChInvoice_HangXin head)//string taxnum,string CORPID) { - var _token = getPortToken_诺诺全电发票自应用模式(taxnum,CORPID); + var _token = getPortToken_诺诺全电发票自应用模式(head.TAXCODE, head.SALECORPID); 诺诺全电发票 result = new 诺诺全电发票(); result.appKey = _token.appKey; result.appSecret = _token.appSecret; result.accessToken = _token.accessToken; - result.taxnum = taxnum; + result.taxnum = head.TAXCODE; result.extensionNumber = _token.extensionNumber; return result; @@ -2226,7 +2226,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin result.Message += ":" + info.failCause; //此处调用一次重推 - var hx = getHelper(head.TAXCODE,head.COMPANYID); + var hx = getHelper(head); hx.重推(head); } else @@ -2494,7 +2494,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin } else { - var hx = 诺诺全电发票.getHelper(head.TAXCODE, head.COMPANYID); + var hx = 诺诺全电发票.getHelper(head); if (!hx.CanUse) { result.SetErrorInfo(hx.ERRORMSG);