dever 6 lat temu
rodzic
commit
7b90ca91d9
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      lib/Cmbc.php

+ 3 - 2
lib/Cmbc.php

@@ -25,10 +25,11 @@ class Cmbc extends Core
 	 */
 	public function notify()
 	{
-		$this->log('支付回调-初始化', file_get_contents("php://input"));
+		$input = file_get_contents("php://input");
+		$this->log('支付回调-初始化', $input);
 		$tools = new \Cmbc\Handle();
 		$callback = $tools->get('notify', $this->config);
-		$result = $callback->request(file_get_contents("php://input"), $this);
+		$result = $callback->request($input, $this);
 		$this->log('支付回调-获取数据', $result);
 		$this->updateOrder($result['mhtOrderNo'], $result['mhtOrderAmt'], '支付成功');