Explorar o código

fix:test导包方法修改

duxin %!s(int64=3) %!d(string=hai) anos
pai
achega
dc5f8e8fc5
Modificáronse 2 ficheiros con 6 adicións e 6 borrados
  1. 4 4
      src/jfw/front/shorturl.go
  2. 2 2
      src/jfw/modules/app/src/app/front/shorturl.go

+ 4 - 4
src/jfw/front/shorturl.go

@@ -300,10 +300,10 @@ func (s *Short) Article(stype, id string) error {
 			//免费用户正文手机号替换
 			if obj["site"] == "剑鱼信息发布平台" && !isMember {
 				//采购电话中标单位电话置空
-				if obj["buyertel"] != "" {
+				if util.InterfaceToStr(obj["buyertel"]) != "" {
 					obj["buyertel"] = "freeView"
 				}
-				if obj["winnertel"] != "" {
+				if util.InterfaceToStr(obj["winnertel"]) != "" {
 					obj["winnertel"] = "freeView"
 				}
 				//正文电话 手机号 邮箱处理
@@ -451,10 +451,10 @@ func (s *Short) Article(stype, id string) error {
 				//免费用户正文手机号替换
 				if obj["site"] == "剑鱼信息发布平台" && !isMember {
 					//采购电话中标单位电话置空
-					if obj["buyertel"] != "" {
+					if util.InterfaceToStr(obj["buyertel"]) != "" {
 						obj["buyertel"] = "freeView"
 					}
-					if obj["winnertel"] != "" {
+					if util.InterfaceToStr(obj["winnertel"]) != "" {
 						obj["winnertel"] = "freeView"
 					}
 					//正文电话 手机号 邮箱处理

+ 2 - 2
src/jfw/modules/app/src/app/front/shorturl.go

@@ -177,10 +177,10 @@ func (s *Short) Article(stype, id string) error {
 		//免费用户正文手机号替换
 		if obj["site"] == "剑鱼信息发布平台" && i_member_status <= 0 {
 			//采购电话中标单位电话置空
-			if obj["buyertel"] != "" {
+			if util.InterfaceToStr(obj["buyertel"]) != "" {
 				obj["buyertel"] = "freeView"
 			}
-			if obj["winnertel"] != "" {
+			if util.InterfaceToStr(obj["winnertel"]) != "" {
 				obj["winnertel"] = "freeView"
 			}
 			//正文电话 手机号 邮箱处理