|
@@ -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();
|