|
@@ -452,7 +452,7 @@ func (this *Invoice) ShowinvoiceList() {
|
|
|
}
|
|
|
invoices := ShowList(order_code)
|
|
|
if invoices != nil && len(invoices) > 0 {
|
|
|
- isIos := util.IsMobileIOS(this.Request.UserAgent())
|
|
|
+ //isIos := util.IsMobileIOS(this.Request.UserAgent())
|
|
|
var invoiceData []map[string]interface{}
|
|
|
for _, data := range invoices {
|
|
|
//是否换过票
|
|
@@ -466,15 +466,15 @@ func (this *Invoice) ShowinvoiceList() {
|
|
|
isJyInvoice := !strings.Contains(qutil.InterfaceToStr(data["url"]), "/jyInvoice/") //非数电票
|
|
|
isJyEntity := data["invoicing_entity"] != nil && qutil.InterfaceToStr(data["invoicing_entity"]) != config.InvoiceConfig.SigningSubject
|
|
|
data["changed"] = qutil.If(isJyInvoice || isChanged || isJyEntity || timeLimit, true, false)
|
|
|
- if url := qutil.InterfaceToStr(data["url"]); url != "" {
|
|
|
- //ios 移动端
|
|
|
- if isIos {
|
|
|
- //国家税务局-增值税电子发票公共服务平台
|
|
|
- if strings.Contains(url, "tysl.beijing.chinatax") {
|
|
|
- data["url"] = strings.ReplaceAll(url, "/preview.html?code=", "/web-reader/reader?file=")
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ //if url := qutil.InterfaceToStr(data["url"]); url != "" {
|
|
|
+ // //ios 移动端
|
|
|
+ // if isIos {
|
|
|
+ // //国家税务局-增值税电子发票公共服务平台
|
|
|
+ // if strings.Contains(url, "tysl.beijing.chinatax") {
|
|
|
+ // data["url"] = strings.ReplaceAll(url, "/preview.html?code=", "/web-reader/reader?file=")
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ //}
|
|
|
isReopen := timeLimit
|
|
|
//var isReopen bool
|
|
|
if data["invoice_status"] == -1 && !isReopen {
|