Ver código fonte

测试分享信息

abiao 5 anos atrás
pai
commit
6482bc638a

+ 3 - 5
go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

@@ -11,9 +11,7 @@ import (
 	"fohow.com/apps"
 	"fohow.com/apps/models/order_model"
 	"fohow.com/apps/models/product_model"
-	// "fohow.com/apps/models/user_model"
-	"fmt"
-	"fohow.com/apps/models/share_model"
+
 	"time"
 )
 
@@ -207,7 +205,7 @@ func (self *ProductController) GetNeedShare() {
 	}
 
 	//秒杀逻辑: 判断是否处于秒杀时间段内+ 是否需要分享
-	if pd.SeckilShowPrice > 0 {
+	/*	if pd.SeckilShowPrice > 0 {
 		now := time.Now()
 		if now.Unix() < pd.SeckillStart.Unix() {
 			self.Data["json"] = &Ret{NeedShare: 0}
@@ -224,7 +222,7 @@ func (self *ProductController) GetNeedShare() {
 		if share == nil {
 			needShare = int64(1)
 		}
-	}
+	}*/
 
 	self.Data["json"] = &Ret{NeedShare: needShare}
 	self.ServeJSON()