update: add payment app_url alert

This commit is contained in:
tokumeikoi 2021-07-29 21:12:11 +09:00
parent cb621a93ae
commit c0d3150461
2 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,9 @@ class PaymentController extends Controller
public function save(Request $request)
{
if (!config('v2board.site.app_url')) {
abort(500, '请在站点配置中配置站点地址');
}
if ($request->input('id')) {
$payment = Payment::find($request->input('id'));
if (!$payment) abort(500, '支付方式不存在');

View File

@ -236,5 +236,5 @@ return [
| The only modification by laravel config
|
*/
'version' => '1.5.2.1627559775390'
'version' => '1.5.3.1627560708248'
];