fuyu 5 éve
szülő
commit
c8d5c1b746
1 módosított fájl, 5 hozzáadás és 3 törlés
  1. 5 3
      application/inter/controller/Wechat.php

+ 5 - 3
application/inter/controller/Wechat.php

@@ -17,9 +17,11 @@ class Wechat extends Base {
     public function  wechatCallback() {
         // $param = $_REQUEST['param'];
         Log::record('微信支付回调');
-        Log::record($this->request->param());
-        Log::record($this->request);
-        Log::record(file_get_contents("php://input"));
+
+        $res = file_get_contents("php://input");
+        $xml = simplexml_load_file($res);
+        $data = json_decode(json_encode($xml),TRUE);
+        json_decode($data);
         Log::record('微信支付回调');
         // $order_id = $param['order_id'];
         // $remote_order = DB::table('remote_order')->where('id', $order_id)->find();