浏览代码

fix:id加解密

duxin 1 年之前
父节点
当前提交
abde05437c
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/jfw/modules/subscribepay/src/service/invoice.go

+ 10 - 10
src/jfw/modules/subscribepay/src/service/invoice.go

@@ -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 {