aa
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/report"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -1898,24 +1899,24 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
// }
|
||||
// }
|
||||
//刷新京东真实订单号
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
goods []*model.GoodsOrder
|
||||
)
|
||||
sql := `
|
||||
SELECT * FROM goods_order WHERE vendor_id = 0 and consignee_mobile2 = '' and order_created_at > '2021-04-13' and vendor_org_code = '320406'
|
||||
`
|
||||
dao.GetRows(db, &goods, sql, nil)
|
||||
for _, v := range goods {
|
||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||
api.JdAPI.SetCookieWithStr(configs[0].Value)
|
||||
}
|
||||
mobile, _ := api.JdAPI.GetRealMobile4Order(v.VendorOrderID, v.VendorStoreID)
|
||||
if v.ConsigneeMobile2 == "" {
|
||||
v.ConsigneeMobile2 = mobile
|
||||
dao.UpdateEntity(db, v, "ConsigneeMobile2")
|
||||
}
|
||||
}
|
||||
//var (
|
||||
// db = dao.GetDB()
|
||||
// goods []*model.GoodsOrder
|
||||
//)
|
||||
//sql := `
|
||||
// SELECT * FROM goods_order WHERE vendor_id = 0 and consignee_mobile2 = '' and order_created_at > '2021-04-13' and vendor_org_code = '320406'
|
||||
//`
|
||||
//dao.GetRows(db, &goods, sql, nil)
|
||||
//for _, v := range goods {
|
||||
// if configs, err := dao.QueryConfigs(dao.GetDB(), "jdStorePageCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||
// api.JdAPI.SetCookieWithStr(configs[0].Value)
|
||||
// }
|
||||
// mobile, _ := api.JdAPI.GetRealMobile4Order(v.VendorOrderID, v.VendorStoreID)
|
||||
// if v.ConsigneeMobile2 == "" {
|
||||
// v.ConsigneeMobile2 = mobile
|
||||
// dao.UpdateEntity(db, v, "ConsigneeMobile2")
|
||||
// }
|
||||
//}
|
||||
//补商品
|
||||
//order, _ := partner.CurOrderManager.LoadOrder("2113480902000652", model.VendorIDJD)
|
||||
//handler := partner.GetPurchaseOrderHandlerFromVendorID(model.VendorIDJD)
|
||||
@@ -1927,7 +1928,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
report.RefreshJDMembers(ctx)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user