删除打印

This commit is contained in:
邹宗楠
2023-07-12 13:56:48 +08:00
parent a217cadbe4
commit 2c34badf6b
13 changed files with 9 additions and 87 deletions

View File

@@ -29,17 +29,14 @@ func (c *TaoBaoVegetableController) GetCode() {
if c.Ctx.Input.Method() == http.MethodPost {
body, err := ioutil.ReadAll(c.Ctx.Request.Body)
if err != nil {
globals.SugarLogger.Debugf("商户收取code获取:%s,%s", string(body), err.Error())
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
c.ServeJSON()
return
}
globals.SugarLogger.Debugf("商户收取code获取:%s", string(body))
codeData = string(body)
} else {
codeData = c.Ctx.Input.Query("code")
}
globals.SugarLogger.Debugf("code:%s", utils.Format4Output(codeData, false))
tokenInfo, err := api.TaoVegetableApi.GetStoreToken(codeData, "")
if err != nil {
globals.SugarLogger.Debugf("获取门店token错误:%s", err.Error())
@@ -47,7 +44,6 @@ func (c *TaoBaoVegetableController) GetCode() {
c.ServeJSON()
return
}
globals.SugarLogger.Debugf("token:%s", utils.Format4Output(tokenInfo, false))
// 创建或者更新账号token
param := &model.VendorOrgCode{
@@ -137,7 +133,6 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() {
globals.SugarLogger.Debugf("ApplyCancelOrder := %s", utils.Format4Output(afsOrder, false))
globals.SugarLogger.Debugf("ApplyCancelOrder err := %s", utils.Format4Output(err, false))
if err != nil {
globals.SugarLogger.Debugf("用户发起售后:%s", err.Error())
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
c.ServeJSON()
return
@@ -183,7 +178,6 @@ func (c *TaoBaoVegetableController) UserCancelRefund() {
globals.SugarLogger.Debugf("UserCancelRefund := %s", utils.Format4Output(afsOrder, false))
globals.SugarLogger.Debugf("UserCancelRefund err := %s", utils.Format4Output(err, false))
if err != nil {
globals.SugarLogger.Debugf("用户取消售后:%s", err.Error())
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
c.ServeJSON()
return
@@ -229,7 +223,6 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() {
globals.SugarLogger.Debugf("CancelOnSaleRefundOrder := %s", utils.Format4Output(afsOrder, false))
globals.SugarLogger.Debugf("CancelOnSaleRefundOrder err := %s", utils.Format4Output(err, false))
if err != nil {
globals.SugarLogger.Debugf("用户售中取消:%s", err.Error())
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
c.ServeJSON()
return
@@ -274,7 +267,6 @@ func (c *TaoBaoVegetableController) RefundOrderSuccess() {
globals.SugarLogger.Debugf("RefundOrderSuccess := %s", utils.Format4Output(refundSuccess, false))
globals.SugarLogger.Debugf("RefundOrderSuccess err := %s", utils.Format4Output(err, false))
if err != nil {
globals.SugarLogger.Debugf("用户售后成功消息通知:%s", err.Error())
c.Data["json"] = tao_vegetable.CallBackResultInfo(err)
c.ServeJSON()
return