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