|
|
|
@ -10,10 +10,10 @@ use Illuminate\Support\Facades\Log;
|
|
|
|
class PayCallbackController extends Controller
|
|
|
|
class PayCallbackController extends Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public function index() {
|
|
|
|
public function index() {
|
|
|
|
$notify = new \NotifyPub();
|
|
|
|
|
|
|
|
//存储微信的回调
|
|
|
|
|
|
|
|
$xml = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input");
|
|
|
|
$xml = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input");
|
|
|
|
Log::info($xml);
|
|
|
|
Log::info($xml);
|
|
|
|
|
|
|
|
$notify = new \NotifyPub();
|
|
|
|
|
|
|
|
//存储微信的回调
|
|
|
|
$notify->saveData($xml);
|
|
|
|
$notify->saveData($xml);
|
|
|
|
|
|
|
|
|
|
|
|
//验证签名,并回应微信。
|
|
|
|
//验证签名,并回应微信。
|
|
|
|
|