aa
This commit is contained in:
@@ -2,7 +2,6 @@ package misc
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -166,9 +165,6 @@ func Init() {
|
|||||||
ScheduleTimerFunc("doDailyWork", doDailyWork, dailyWorkTimeList)
|
ScheduleTimerFunc("doDailyWork", doDailyWork, dailyWorkTimeList)
|
||||||
|
|
||||||
ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
|
ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
|
||||||
// ScheduleTimerFuncByInterval(func() {
|
|
||||||
// orderman.SaveJdsOrders(jxcontext.AdminCtx, time.Now().Add(-20*time.Minute), time.Now())
|
|
||||||
// }, 10*time.Second, 10*time.Minute)
|
|
||||||
|
|
||||||
//京东的订单信息解密密钥获取
|
//京东的订单信息解密密钥获取
|
||||||
ScheduleTimerFuncByInterval(func() {
|
ScheduleTimerFuncByInterval(func() {
|
||||||
@@ -532,11 +528,11 @@ func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime ti
|
|||||||
order := batchItemList[0].(*model.GoodsOrder)
|
order := batchItemList[0].(*model.GoodsOrder)
|
||||||
mobile, err2 := handler.GetOrderRealMobile(ctx, order)
|
mobile, err2 := handler.GetOrderRealMobile(ctx, order)
|
||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
mobile = jxutils.FormalizeMobile(mobile)
|
//mobile = jxutils.FormalizeMobile(mobile)
|
||||||
if jxutils.IsStringLikeMobile(mobile) && strings.Index(order.ConsigneeMobile, mobile) == -1 {
|
//if jxutils.IsStringLikeMobile(mobile) && strings.Index(order.ConsigneeMobile, mobile) == -1 {
|
||||||
order.ConsigneeMobile2 = mobile
|
order.ConsigneeMobile2 = mobile
|
||||||
_, err = dao.UpdateEntity(db, order, "ConsigneeMobile2")
|
_, err = dao.UpdateEntity(db, order, "ConsigneeMobile2")
|
||||||
}
|
//}
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Infof("RefreshRealMobile orderID:%s failed with error:%v", order.VendorOrderID, err)
|
globals.SugarLogger.Infof("RefreshRealMobile orderID:%s failed with error:%v", order.VendorOrderID, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1917,8 +1917,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
results, _ := api.JdAPI.QueryMemberTransListByCondition(page, pageSize)
|
results, _ := api.JdAPI.QueryMemberTransListByCondition(page, pageSize)
|
||||||
for _, v := range results {
|
for _, v := range results {
|
||||||
if utils.Str2Time(v.Endtimestr+" 23:59:59").Sub(time.Now()) >= 0 {
|
if utils.Str2Time(v.Endtimestr+" 23:59:59").Sub(time.Now()) >= 0 {
|
||||||
userMembers, _ := dao.GetUserMember(db, "", "", v.Merchantcardno, model.VendorIDJD, 0, -1)
|
|
||||||
if len(userMembers) == 0 {
|
|
||||||
userMember := &model.UserMember{
|
userMember := &model.UserMember{
|
||||||
VendorOrderID: v.Orderid,
|
VendorOrderID: v.Orderid,
|
||||||
VendorID: model.VendorIDJD,
|
VendorID: model.VendorIDJD,
|
||||||
@@ -1939,7 +1937,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//刷新京东真实订单号
|
//刷新京东真实订单号
|
||||||
//var (
|
//var (
|
||||||
// db = dao.GetDB()
|
// db = dao.GetDB()
|
||||||
|
|||||||
Reference in New Issue
Block a user