全电发票,取key的公司,由head.companyid改为salecorpid

DS7_JinGang
dengyu 1 year ago
parent 756c46d57f
commit 51a9d4ea77

@ -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);

@ -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);

Loading…
Cancel
Save