Explorar el Código

滴滴回调参数接收修改

shizhongqi hace 8 meses
padre
commit
9912767340
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      common/components/delivery/platform/didi/CallBackHandler.php

+ 4 - 2
common/components/delivery/platform/didi/CallBackHandler.php

@@ -23,12 +23,14 @@ class CallBackHandler
     /**
      * 处理滴滴回调
      *
-     * @param array $data 回调数据
+     * @param array $post 回调数据
      * @return bool|array 处理结果
      */
-    public function handle($data)
+    public function handle($post)
     {
         try {
+            $data = json_decode($post['logisticsParam'], true);
+
             // 验证签名 (如有需要请实现)
             // if (!$this->verifySignature($data)) { ... }