This commit is contained in:
邹宗楠
2022-10-24 17:32:42 +08:00
parent 032fb6ad0e
commit 9c66cc7c15
2 changed files with 15 additions and 10 deletions

View File

@@ -1133,13 +1133,13 @@ func (s *DefScheduler) resetTimer(savedOrderInfo *WatchOrderInfo, bill *model.Wa
if timeout == 0 { if timeout == 0 {
config.CallTimeoutAction(savedOrderInfo, bill) config.CallTimeoutAction(savedOrderInfo, bill)
} else { } else {
timerName := "" //timerName := ""
if statusType == model.OrderTypeOrder { //if statusType == model.OrderTypeOrder {
timerName = model.OrderStatusName[status] // timerName = model.OrderStatusName[status]
} else if statusType == model.OrderTypeWaybill { //} else if statusType == model.OrderTypeWaybill {
timerName = model.WaybillStatusName[status] // timerName = model.WaybillStatusName[status]
} //}
globals.SugarLogger.Debugf("timerName %s", timerName) //globals.SugarLogger.Debugf("timerName %s", timerName)
timerInfo := &tTimerInfo{ timerInfo := &tTimerInfo{
statusType: statusType, statusType: statusType,
vendorID: vendorID, vendorID: vendorID,

View File

@@ -18,8 +18,13 @@ type TiktokShopController struct {
// TokenMsg 抖音用户授权 // TokenMsg 抖音用户授权
func (c *TiktokShopController) TokenMsg() { func (c *TiktokShopController) TokenMsg() {
globals.SugarLogger.Debugf("codeParams = %s", utils.Format4Output(c.Ctx.Request.URL.Query(), false)) code := utils.Interface2StringList(c.Ctx.Request.URL.Query().Get("code"))[0]
code := c.Ctx.Request.URL.Query().Get("code") if code == "" {
c.Data["json"] = tiktok_api.CallbackResponse{Code: tiktok_api.CallbackFailCode, Msg: tiktok_api.CallbackFail}
c.ServeJSON()
return
}
globals.SugarLogger.Debugf("==========%s", code) globals.SugarLogger.Debugf("==========%s", code)
result, err := api.TiktokStore.CreateToken(code) result, err := api.TiktokStore.CreateToken(code)
globals.SugarLogger.Debugf("=result=========%s", utils.Format4Output(result, false)) globals.SugarLogger.Debugf("=result=========%s", utils.Format4Output(result, false))
@@ -42,7 +47,7 @@ func (c *TiktokShopController) TokenMsg() {
param := &model.VendorOrgCode{ param := &model.VendorOrgCode{
VendorID: model.VendorIDDD, VendorID: model.VendorIDDD,
VendorOrgCode: result.ShopId, VendorOrgCode: utils.Int64ToStr(result.ShopId),
Comment: "抖音授权", Comment: "抖音授权",
VendorType: "platform", VendorType: "platform",
IsJxCat: 1, IsJxCat: 1,