Browse Source

修改push时间

renzheng 9 years ago
parent
commit
6912e1f70e

+ 1 - 2
core/src/timetask.json

@@ -1,2 +1 @@
-{"comment":{"c_rate":10,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-05 10:30:32"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-05 10:30:32"}},"marketisstart":true,"marketrate":300}
-
+{"comment":{"c_rate":10,"commentrate":900},"market":{"demand":{"attr":["i_hits","i_bids","i_status"],"timepoint":"2016-01-05 11:43:55"},"service":{"attr":["i_hits","i_sales","i_comments","i_score","i_appcounts"],"timepoint":"2016-01-05 11:43:55"}},"marketisstart":true,"marketrate":300}

+ 1 - 1
push/src/qfw/push/bid/bidpushjob.go

@@ -153,7 +153,7 @@ func send(k *push.MemberInterest, v *list.List, now time.Time, nowtime string) {
 			if minute > 121 {
 				return ""
 			} else {
-				if minute < 0 {
+				if minute < 1 {
 					minute = 1
 				}
 				return fmt.Sprintf("%d分钟前发布的", minute)

+ 1 - 2
push/src/qfw/push/tender/tenderpushjob.go

@@ -150,13 +150,12 @@ func send(k *push.MemberInterest, v *list.List, now time.Time, nowtime string) {
 			if minute > 121 {
 				return ""
 			} else {
-				if minute < 0 {
+				if minute < 1 {
 					minute = 1
 				}
 				return fmt.Sprintf("%d分钟前发布的", minute)
 			}
 		}
-
 	}(), firstTitle, func() string {
 		if i == 1 {
 			return ""