From 4f0f20154525dd9292bb76aad0dc8cdcec1c4584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 27 Jul 2023 16:25:59 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store_sku.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 0210c7624..be23eafac 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -5926,12 +5926,11 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto return false, err } - globals.SugarLogger.Debugf("-------------- %s", utils.Format4Output(ctx.GetLoginType(), false)) if ctx.GetLoginType() != weixin.AuthTypeMP && ctx.GetLoginType() != weixin.AuthTypeMini && ctx.GetLoginType() != weixin.AuthTypeWxApp && ctx.GetLoginType() != weixin.AuthTypeWxAppCaishi && ctx.GetLoginType() != auth2.AuthTypeMobile { authInfo, err := ctx.GetV2AuthInfo() - globals.SugarLogger.Debugf("------------authInfo-- %s", utils.Format4Output(authInfo, false)) + globals.SugarLogger.Debugf("------------authInfo2-- %s", utils.Format4Output(ctx.GetFullUser().Type, false)) + globals.SugarLogger.Debugf("------------authInfo3-- %s", utils.Format4Output(ctx.GetFullUser().Type&model.UserTypeOperator, false)) if err == nil && authInfo != nil && (ctx.GetFullUser().Type&model.UserTypeOperator) != 0 { - globals.SugarLogger.Debugf("------------storeAudits-- %s", utils.Format4Output(storeAudits, false)) if len(storeAudits) > 0 { storeAudits[0].DeletedAt = time.Now() dao.UpdateEntity(db, storeAudits[0], "DeletedAt") @@ -5945,7 +5944,6 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto return false, err } } - globals.SugarLogger.Debugf("-22222------------- %s", utils.Format4Output(ctx.GetLoginType(), false)) storeSkuAudit := &model.StoreSkuAudit{ StoreID: storeID,