|
@@ -127,8 +127,8 @@ func (u *InvoiceService) InvoiceDownload(swno string, saleTax string, isRed stri
|
|
|
var err error
|
|
|
err = nil
|
|
|
//正常
|
|
|
+ //if (err != nil) {
|
|
|
if (err != nil) {
|
|
|
- //if (err == nil) {
|
|
|
data1 := make(map[string]interface{})
|
|
|
data1["fpdm"] = ""
|
|
|
data1["fphm"] = ""
|
|
@@ -137,7 +137,6 @@ func (u *InvoiceService) InvoiceDownload(swno string, saleTax string, isRed stri
|
|
|
starTime := time.Now().Unix()
|
|
|
if isLoop == 0 {
|
|
|
arr := strings.Split(entity.WarningEmail, ",")
|
|
|
-
|
|
|
util.SendPdf(arr, true, swno, "发票下载时服务出现问题")
|
|
|
|
|
|
solgan := entity.Invoice{
|
|
@@ -165,10 +164,10 @@ 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"
|
|
|
+ //dat.ReturnMsg.MsgCode = "1000"
|
|
|
|
|
|
util.Loger.Println("发票下载:", "流水号:", swno, "结果:", dat)
|
|
|
//dat.ReturnMsg.MsgCode = entity.LineUpCode
|
|
@@ -197,9 +196,7 @@ func (u *InvoiceService) InvoiceDownload(swno string, saleTax string, isRed stri
|
|
|
return nil, 2, dat.ReturnMsg.Msg
|
|
|
} else {
|
|
|
arr := strings.Split(entity.WarningEmail, ",")
|
|
|
-
|
|
|
util.SendPdf(arr, true, swno, "发票下载时出现问题,"+dat.ReturnMsg.Msg)
|
|
|
-
|
|
|
return nil, 1, dat.ReturnMsg.Msg
|
|
|
}
|
|
|
}
|
|
@@ -392,11 +389,9 @@ func (u *InvoiceService) Timer(swno string, saleTax string, isRed string, isfeed
|
|
|
fmt.Sprint("numb", "执行次数")
|
|
|
if numb == entity.Frequency {
|
|
|
arr := strings.Split(entity.WarningEmail, ",")
|
|
|
-
|
|
|
util.SendPdf(arr, false, swno, "排队中签章失败定时任务出现问题")
|
|
|
-
|
|
|
numb++
|
|
|
- util.Callback(swno, saleTax, "", "", "", changed, isRed, resType, "true", "", orderCode)
|
|
|
+ //util.Callback(swno, saleTax, "", "", "", changed, isRed, resType, "true", "", orderCode)
|
|
|
}
|
|
|
util.Loger.Println("第:", numb, "次执行", "流水号:", swno)
|
|
|
numb++
|