|
@@ -138,7 +138,6 @@ func (u *InvoiceService) InvoiceDownload(swno string, saleTax string, isRed stri
|
|
if isLoop == 0 {
|
|
if isLoop == 0 {
|
|
arr := strings.Split(entity.WarningEmail, ",")
|
|
arr := strings.Split(entity.WarningEmail, ",")
|
|
util.SendPdf(arr, true, swno, "发票下载时服务出现问题")
|
|
util.SendPdf(arr, true, swno, "发票下载时服务出现问题")
|
|
-
|
|
|
|
solgan := entity.Invoice{
|
|
solgan := entity.Invoice{
|
|
Swno: swno,
|
|
Swno: swno,
|
|
SaleTax: saleTax,
|
|
SaleTax: saleTax,
|
|
@@ -164,10 +163,10 @@ func (u *InvoiceService) InvoiceDownload(swno string, saleTax string, isRed stri
|
|
//dat.ReturnMsg.MsgCode = "0000"
|
|
//dat.ReturnMsg.MsgCode = "0000"
|
|
|
|
|
|
//排队中
|
|
//排队中
|
|
- dat.ReturnMsg.MsgCode="1089"
|
|
|
|
|
|
+ //dat.ReturnMsg.MsgCode="1089"
|
|
|
|
|
|
//失败
|
|
//失败
|
|
- //dat.ReturnMsg.MsgCode = "1000"
|
|
|
|
|
|
+ dat.ReturnMsg.MsgCode = "1000"
|
|
|
|
|
|
util.Loger.Println("发票下载:", "流水号:", swno, "结果:", dat)
|
|
util.Loger.Println("发票下载:", "流水号:", swno, "结果:", dat)
|
|
//dat.ReturnMsg.MsgCode = entity.LineUpCode
|
|
//dat.ReturnMsg.MsgCode = entity.LineUpCode
|
|
@@ -463,6 +462,7 @@ func (u *InvoiceService) OpeningTimer(solgan *entity.Invoice) {
|
|
} else {
|
|
} else {
|
|
swnoMap := valueInface.(map[string]interface{})
|
|
swnoMap := valueInface.(map[string]interface{})
|
|
numb, _ := strconv.Atoi(fmt.Sprint(swnoMap["numb"]))
|
|
numb, _ := strconv.Atoi(fmt.Sprint(swnoMap["numb"]))
|
|
|
|
+ fmt.Println("服务失败循环:",numb,"----",entity.OpenFrequency)
|
|
if numb < entity.OpenFrequency {
|
|
if numb < entity.OpenFrequency {
|
|
if solgan.Model == "1" || solgan.Model == "2" {
|
|
if solgan.Model == "1" || solgan.Model == "2" {
|
|
util.Loger.Println("第:", numb, "次执行重新开票", "发票号码:", solgan.Yfphm)
|
|
util.Loger.Println("第:", numb, "次执行重新开票", "发票号码:", solgan.Yfphm)
|