1
This commit is contained in:
@@ -100,7 +100,7 @@ func (c *TaoBaoVegetableController) OrderStatus() {
|
|||||||
|
|
||||||
// 验签
|
// 验签
|
||||||
sign := Sign(values, utils.Format4Output(order, false), api.TaoVegetableApi.GetAppSecret())
|
sign := Sign(values, utils.Format4Output(order, false), api.TaoVegetableApi.GetAppSecret())
|
||||||
if sign != values.Get("sign") && order != nil {
|
if sign != values.Get("sign") {
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
return
|
return
|
||||||
@@ -143,7 +143,7 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() {
|
|||||||
|
|
||||||
// 验签
|
// 验签
|
||||||
sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret())
|
sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret())
|
||||||
if sign != values.Get("sign") && afsOrder != nil {
|
if sign != values.Get("sign") {
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
return
|
return
|
||||||
@@ -186,7 +186,7 @@ func (c *TaoBaoVegetableController) UserCancelRefund() {
|
|||||||
|
|
||||||
// 验签
|
// 验签
|
||||||
sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret())
|
sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret())
|
||||||
if sign != values.Get("sign") && afsOrder != nil {
|
if sign != values.Get("sign") {
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
return
|
return
|
||||||
@@ -229,7 +229,7 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() {
|
|||||||
|
|
||||||
// 验签
|
// 验签
|
||||||
sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret())
|
sign := Sign(values, utils.Format4Output(afsOrder, false), api.TaoVegetableApi.GetAppSecret())
|
||||||
if sign != values.Get("sign") && afsOrder != nil {
|
if sign != values.Get("sign") {
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
return
|
return
|
||||||
@@ -271,7 +271,7 @@ func (c *TaoBaoVegetableController) RefundOrderSuccess() {
|
|||||||
}
|
}
|
||||||
// 验签
|
// 验签
|
||||||
sign := Sign(values, utils.Format4Output(refundSuccess, false), api.TaoVegetableApi.GetAppSecret())
|
sign := Sign(values, utils.Format4Output(refundSuccess, false), api.TaoVegetableApi.GetAppSecret())
|
||||||
if sign != values.Get("sign") && refundSuccess != nil {
|
if sign != values.Get("sign") {
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
c.Data["json"] = tao_vegetable.CallBackResultSign(fmt.Errorf("非法签名"))
|
||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user