This commit is contained in:
邹宗楠
2025-08-01 16:46:48 +08:00
parent 3f03115276
commit 2747c7aec6
2 changed files with 4 additions and 4 deletions

View File

@@ -425,9 +425,9 @@ func Init() {
}, dailyWorkTimeList) }, dailyWorkTimeList)
ScheduleTimerFunc("doDailyWork2-1", func() { ScheduleTimerFunc("doDailyWork2-1", func() {
// 刷新商品,换个时间节点,房子请求超时 // 刷新商品,换个时间节点,房子请求超时
//cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, dao.GetDB(), []int{1, 3}, nil, false, nil, nil, model.SyncFlagSaleMask, true, true) cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, dao.GetDB(), []int{1, 3}, nil, false, nil, nil, model.SyncFlagSaleMask, true, true)
// 刷新门店平台商品 // 刷新门店平台商品
syncStoreSku() //syncStoreSku()
}, []string{"02:00:00"}) }, []string{"02:00:00"})
ScheduleTimerFunc("doDailyWork3", func() { ScheduleTimerFunc("doDailyWork3", func() {

View File

@@ -21,7 +21,7 @@ import (
"github.com/astaxie/beego/client/orm" "github.com/astaxie/beego/client/orm"
) )
func pay4OrderByLaKaLa(ctx *jxcontext.Context, order *model.GoodsOrder, payType int, vendorPayType, subAppID, code, source, ip string) (orderPay *model.OrderPay, err error) { func pay4OrderByLaKaLa(ctx *jxcontext.Context, order *model.GoodsOrder, payType int, vendorPayType, subAppID, code, source string) (orderPay *model.OrderPay, err error) {
merchantObj, err := dao.GetStoreInfoByMerchantID(dao.GetDB(), "", order.JxStoreID, "", "") merchantObj, err := dao.GetStoreInfoByMerchantID(dao.GetDB(), "", order.JxStoreID, "", "")
if err != nil { if err != nil {
return nil, err return nil, err
@@ -33,7 +33,7 @@ func pay4OrderByLaKaLa(ctx *jxcontext.Context, order *model.GoodsOrder, payType
OutTradeNo: order.VendorOrderID, OutTradeNo: order.VendorOrderID,
TotalAmount: utils.Int64ToStr(order.ActualPayPrice), TotalAmount: utils.Int64ToStr(order.ActualPayPrice),
LocationInfo: lakala.LocationInfoObj{ LocationInfo: lakala.LocationInfoObj{
RequestIp: ip, RequestIp: ctx.GetRealRemoteIP(),
}, },
NotifyUrl: lakala.PayStatusCallback, NotifyUrl: lakala.PayStatusCallback,
Subject: fmt.Sprintf("感谢您在本店%s消费,欢迎下次再来", order.StoreName), Subject: fmt.Sprintf("感谢您在本店%s消费,欢迎下次再来", order.StoreName),