|
@@ -11,8 +11,8 @@ import (
|
|
|
|
|
|
func OrderResource() {
|
|
|
now := time.Now()
|
|
|
- //start := now.Add(-time.Minute * 1).Unix()
|
|
|
- start := now.AddDate(-1, 0, 0).Unix()
|
|
|
+ start := now.Add(-time.Minute * 1).Unix()
|
|
|
+ //start := now.AddDate(-1, 0, 0).Unix()
|
|
|
log.Println("user", start, now.Unix())
|
|
|
it := Mgo_qfw.GetMgoConn().DB("qfw").C("user").Find(map[string]interface{}{
|
|
|
"i_appid": 2,
|
|
@@ -35,7 +35,7 @@ func OrderResource() {
|
|
|
log.Println("user", it)
|
|
|
for user := make(map[string]interface{}); it.Next(&user); {
|
|
|
//每个用户生成10个附件下载包
|
|
|
- /*userId := qu.InterfaceToStr(user["_id"])
|
|
|
+ userId := qu.InterfaceToStr(user["_id"])
|
|
|
vipTime := time.Unix(qu.Int64All(user["l_vip_starttime"]), 0).Format("2006-01-02")
|
|
|
Purchase.PurchaseUserBalance(resourcesCenterclient.Resources{
|
|
|
AppId: "10000",
|
|
@@ -48,7 +48,7 @@ func OrderResource() {
|
|
|
EndTime: endTime,
|
|
|
VipTime: vipTime,
|
|
|
Model: 3,
|
|
|
- })*/
|
|
|
+ })
|
|
|
}
|
|
|
//企业版超级订阅处理
|
|
|
log.Println("ent_user", start, now.Unix())
|