This commit is contained in:
Tokumeikoi 2020-03-07 11:37:39 +08:00
parent 4f709bf1f6
commit f5132abad1
4 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ class OrderController extends Controller
{ {
public function alipayNotify(Request $request) public function alipayNotify(Request $request)
{ {
Log::info('alipayNotifyData: ' . json_encode($_POST)); // Log::info('alipayNotifyData: ' . json_encode($_POST));
$gateway = Omnipay::create('Alipay_AopF2F'); $gateway = Omnipay::create('Alipay_AopF2F');
$gateway->setSignType('RSA2'); //RSA/RSA2 $gateway->setSignType('RSA2'); //RSA/RSA2
$gateway->setAppId(config('v2board.alipay_appid')); $gateway->setAppId(config('v2board.alipay_appid'));
@ -52,7 +52,7 @@ class OrderController extends Controller
public function stripeNotify(Request $request) public function stripeNotify(Request $request)
{ {
Log::info('stripeNotifyData: ' . json_encode($request->input())); // Log::info('stripeNotifyData: ' . json_encode($request->input()));
\Stripe\Stripe::setApiKey(config('v2board.stripe_sk_live')); \Stripe\Stripe::setApiKey(config('v2board.stripe_sk_live'));
try { try {
@ -93,7 +93,7 @@ class OrderController extends Controller
public function bitpayXNotify(Request $request) public function bitpayXNotify(Request $request)
{ {
$inputString = file_get_contents('php://input', 'r'); $inputString = file_get_contents('php://input', 'r');
Log::info('bitpayXNotifyData: ' . $inputString); // Log::info('bitpayXNotifyData: ' . $inputString);
$inputStripped = str_replace(array("\r", "\n", "\t", "\v"), '', $inputString); $inputStripped = str_replace(array("\r", "\n", "\t", "\v"), '', $inputString);
$inputJSON = json_decode($inputStripped, true); //convert JSON into array $inputJSON = json_decode($inputStripped, true); //convert JSON into array
@ -125,7 +125,7 @@ class OrderController extends Controller
public function payTaroNotify(Request $request) public function payTaroNotify(Request $request)
{ {
Log::info('payTaroNotify: ' . json_encode($request->input())); // Log::info('payTaroNotify: ' . json_encode($request->input()));
$payTaro = new PayTaro(config('v2board.paytaro_app_id'), config('v2board.paytaro_app_secret')); $payTaro = new PayTaro(config('v2board.paytaro_app_id'), config('v2board.paytaro_app_secret'));
if (!$payTaro->verify($request->input())) { if (!$payTaro->verify($request->input())) {

View File

@ -59,7 +59,7 @@ class DeepbworkController extends Controller
// 后端提交数据 // 后端提交数据
public function submit(Request $request) public function submit(Request $request)
{ {
Log::info('serverSubmitData:' . $request->input('node_id') . ':' . file_get_contents('php://input')); // Log::info('serverSubmitData:' . $request->input('node_id') . ':' . file_get_contents('php://input'));
$server = Server::find($request->input('node_id')); $server = Server::find($request->input('node_id'));
if (!$server) { if (!$server) {
return response([ return response([

View File

@ -51,7 +51,7 @@ class PoseidonController extends Controller
{ {
if ($r = $this->verifyToken($request)) { return $r; } if ($r = $this->verifyToken($request)) { return $r; }
Log::info('serverSubmitData:' . $request->input('node_id') . ':' . file_get_contents('php://input')); // Log::info('serverSubmitData:' . $request->input('node_id') . ':' . file_get_contents('php://input'));
$server = Server::find($request->input('node_id')); $server = Server::find($request->input('node_id'));
if (!$server) { if (!$server) {
return $this->error("server could not be found", 404); return $this->error("server could not be found", 404);

View File

@ -452,7 +452,7 @@ class OrderController extends Controller
'user_id' => $order->user_id, 'user_id' => $order->user_id,
'invoice_id' => $order->trade_no, 'invoice_id' => $order->trade_no,
'identifier' => '' 'identifier' => ''
], ],
'redirect' => [ 'redirect' => [
'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order'
] ]
@ -482,7 +482,7 @@ class OrderController extends Controller
$strToSign = $bitpayX->prepareSignId($params['merchant_order_id']); $strToSign = $bitpayX->prepareSignId($params['merchant_order_id']);
$params['token'] = $bitpayX->sign($strToSign); $params['token'] = $bitpayX->sign($strToSign);
$result = $bitpayX->mprequest($params); $result = $bitpayX->mprequest($params);
Log::info('bitpayXSubmit: ' . json_encode($result)); // Log::info('bitpayXSubmit: ' . json_encode($result));
return isset($result['payment_url']) ? $result['payment_url'] : false; return isset($result['payment_url']) ? $result['payment_url'] : false;
} }