1
This commit is contained in:
@@ -55,9 +55,6 @@ func New(notUsed interface{}, token string, w http.ResponseWriter, r *http.Reque
|
||||
globals.SugarLogger.Debugf("jxcontext New, token:%s", token)
|
||||
if auth2.IsV2Token(token) {
|
||||
authInfo, err2 := auth2.GetTokenInfo(token)
|
||||
globals.SugarLogger.Debug("authInfo==============",authInfo.Name)
|
||||
globals.SugarLogger.Debug("authInfo==============",authInfo.UserID)
|
||||
globals.SugarLogger.Debug("authInfo==============",err2)
|
||||
if err = err2; err == nil {
|
||||
ctx.userInfo = authInfo
|
||||
globals.SugarLogger.Debugf("jxcontext New, V2 authInfo:%s", utils.Format4Output(authInfo, true))
|
||||
|
||||
@@ -236,8 +236,6 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
|
||||
if jxOrder.OrderType == model.OrderTypeMatter {
|
||||
checkMatterDeliveryAddress(deliveryAddress)
|
||||
}
|
||||
globals.SugarLogger.Debug("outorder====", outJxOrder.TotalPrice, outJxOrder.FreightPrice)
|
||||
globals.SugarLogger.Debug("jxOrder=====", jxOrder.TotalPrice, jxOrder.FreightPrice)
|
||||
if createType == OrderCreateTypeNormal {
|
||||
if jxOrder.OrderType == model.OrderTypeDefendPrice && jxOrder.IsPriceDefend != model.YES {
|
||||
vendorOrderID := buildDefendPriceOrder(ctx, jxOrder, addressID)
|
||||
|
||||
@@ -42,7 +42,8 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, payType int,
|
||||
if vendorPayType == tonglianpayapi.PayTypeWxXcx {
|
||||
param.SubAppID = subAppID
|
||||
authInfo, err := ctx.GetV2AuthInfo()
|
||||
if err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthID() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID {
|
||||
globals.SugarLogger.Debug("11111111111111111111",authInfo.GetAuthType(),)
|
||||
if err == nil && (authInfo.GetAuthType() == weixin.AuthTypeMini || authInfo.GetAuthType() == douyin.AuthTypeTiktokMini)&& authInfo.GetAuthTypeID() == subAppID {
|
||||
param.Acct = authInfo.GetAuthID()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user