|
|
|
|
@ -15,8 +15,8 @@ class PayCallbackController extends Controller
|
|
|
|
|
$xml = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : file_get_contents("php://input");
|
|
|
|
|
Log::info($xml);
|
|
|
|
|
$array = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
|
|
|
|
|
$order = (new Orders())->where("serial", $array["out_trade_no"])->first();
|
|
|
|
|
$notify = new \NotifyPub($order->project_id);
|
|
|
|
|
$recharge = (new Recharge())->with("order")->where("serial", $array["out_trade_no"])->first();
|
|
|
|
|
$notify = new \NotifyPub($recharge->order->project_id);
|
|
|
|
|
Log::info($xml);
|
|
|
|
|
//存储微信的回调
|
|
|
|
|
$notify->saveData($xml);
|
|
|
|
|
|