mirror of
https://github.com/v2board/v2board.git
synced 2025-01-26 16:09:09 +08:00
update
This commit is contained in:
parent
08e205af0b
commit
5e9ce44a56
@ -191,13 +191,13 @@ class OrderController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function alipayF2F ($tradeNo, $totalAmount) {
|
private function alipayF2F ($tradeNo, $totalAmount, Request $request) {
|
||||||
$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'));
|
||||||
$gateway->setPrivateKey(config('v2board.alipay_privkey')); // 可以是路径,也可以是密钥内容
|
$gateway->setPrivateKey(config('v2board.alipay_privkey')); // 可以是路径,也可以是密钥内容
|
||||||
$gateway->setAlipayPublicKey(config('v2board.alipay_pubkey')); // 可以是路径,也可以是密钥内容
|
$gateway->setAlipayPublicKey(config('v2board.alipay_pubkey')); // 可以是路径,也可以是密钥内容
|
||||||
$gateway->setNotifyUrl(config('v2board.app_url', env('APP_URL')) . '/api/v1/guest/order/alipayNotify');
|
$gateway->setNotifyUrl($request->getSchemeAndHttpHost() . '/api/v1/guest/order/alipayNotify');
|
||||||
$request = $gateway->purchase();
|
$request = $gateway->purchase();
|
||||||
$request->setBizContent([
|
$request->setBizContent([
|
||||||
'subject' => config('v2board.app_name', 'V2Board') . ' - 订阅',
|
'subject' => config('v2board.app_name', 'V2Board') . ' - 订阅',
|
||||||
|
5
public/env.example.js
vendored
Normal file
5
public/env.example.js
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
window.v2board = {
|
||||||
|
title: 'V2Board',
|
||||||
|
theme: '1',
|
||||||
|
host: ''
|
||||||
|
}
|
2
public/p__plan.async.js
vendored
2
public/p__plan.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/p__plan__$plan_id.async.js
vendored
2
public/p__plan__$plan_id.async.js
vendored
File diff suppressed because one or more lines are too long
2
public/umi.js
vendored
2
public/umi.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
use Illuminate\Http\Request;
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Web Routes
|
| Web Routes
|
||||||
@ -11,7 +11,10 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function (Request $request) {
|
||||||
|
if (config('v2board_url') && ($request->getSchemeAndHttpHost() !== config('v2board.url'))) {
|
||||||
|
abort(403, 'forbidden');
|
||||||
|
}
|
||||||
return view('app', [
|
return view('app', [
|
||||||
'title' => config('v2board.app_name', 'V2Board'),
|
'title' => config('v2board.app_name', 'V2Board'),
|
||||||
'theme' => config('v2board.app_theme', 1),
|
'theme' => config('v2board.app_theme', 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user