|
|
@@ -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()
|