WH01243 4 jaren geleden
bovenliggende
commit
21518a8b35
1 gewijzigde bestanden met toevoegingen van 9 en 3 verwijderingen
  1. 9 3
      invoice/src/service/InvoiceService.go

+ 9 - 3
invoice/src/service/InvoiceService.go

@@ -163,7 +163,7 @@ func (u *InvoiceService) InvoiceDownload(swno string, saleTax string, isRed stri
 	//dat.ReturnMsg.MsgCode = "0000"
 
 	//排队中
-	//dat.ReturnMsg.MsgCode="1089"
+	dat.ReturnMsg.MsgCode="1089"
 
 	//失败
 	dat.ReturnMsg.MsgCode = "1000"
@@ -417,7 +417,9 @@ func (u *InvoiceService) Timer(swno string, saleTax string, isRed string, isfeed
 				redis.Del(core.GetConfiguration().Redis.Modules, "fp_"+swno)
 				c.Stop()
 			}
-		} else if(code==1){
+		} else if (code == 1) {
+			redis.Del(core.GetConfiguration().Redis.Modules, "fp_"+swno)
+			fmt.Println("")
 			util.Callback(swno, saleTax, "", "", "", changed, isRed, resType, "true", "", orderCode)
 			c.Stop()
 		}
@@ -462,7 +464,7 @@ func (u *InvoiceService) OpeningTimer(solgan *entity.Invoice) {
 		} else {
 			swnoMap := valueInface.(map[string]interface{})
 			numb, _ := strconv.Atoi(fmt.Sprint(swnoMap["numb"]))
-			fmt.Println("服务失败循环:",numb,"----",entity.OpenFrequency)
+			fmt.Println("服务失败循环:", numb, "----", entity.OpenFrequency)
 			if numb < entity.OpenFrequency {
 				if solgan.Model == "1" || solgan.Model == "2" {
 					util.Loger.Println("第:", numb, "次执行重新开票", "发票号码:", solgan.Yfphm)
@@ -545,6 +547,10 @@ func (u *InvoiceService) OpeningTimer(solgan *entity.Invoice) {
 				redis.Del(core.GetConfiguration().Redis.Modules, "xx_"+solgan.Swno)
 				util.Callback(solgan.Swno, solgan.SaleTax, solgan.Yfpdm, solgan.Yfphm, "", solgan.Changed, solgan.IsRed, solgan.ResType, "true", solgan.Model, solgan.OrderCode)
 				c.Stop()
+			} else if (code == 1) {
+				redis.Del(core.GetConfiguration().Redis.Modules, "xx_"+solgan.Swno)
+				util.Callback(solgan.Swno, solgan.SaleTax, solgan.Yfpdm, solgan.Yfphm, "", solgan.Changed, solgan.IsRed, solgan.ResType, "true", solgan.Model, solgan.OrderCode)
+				c.Stop()
 			}
 		}
 		/*if (numb == 0) {