From 2991b545148e0d2c6f2ea0dc3ab29f2aa639f286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 4 Jul 2023 09:19:41 +0800 Subject: [PATCH] 1 --- controllers/taobao_vegetable.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/taobao_vegetable.go b/controllers/taobao_vegetable.go index e5bf541b0..4170e1f44 100644 --- a/controllers/taobao_vegetable.go +++ b/controllers/taobao_vegetable.go @@ -140,17 +140,17 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() { return } - // 验签 + // 验签 FFF779F16365992BD721C9C1A027F03C sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret()) if sign != values.Get("sign") { // 76626F983F0F7E4A159AD64F9B13B332 c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名")) c.ServeJSON() return - } /*else { + } else { c.Data["json"] = tao_vegetable.CallBackResultSign(nil) c.ServeJSON() return - }*/ + } callbackResponse := taoVegetable.OnCallbackMsg(tao_vegetable.OrderStatusApplyAfs, afsOrder.OutOrderId, afsOrder) c.Data["json"] = callbackResponse