修复因key导致无法完成成功

This commit is contained in:
乐风 2021-05-08 17:21:15 +08:00
parent 66e1d2c59d
commit d44ca9d556
2 changed files with 8 additions and 6 deletions

View File

@ -1,9 +1,11 @@
<?php <?php
use App\Support\AES;
require __DIR__.'/macros.php'; require __DIR__.'/macros.php';
require __DIR__.'/sql.php'; require __DIR__.'/sql.php';
$keys = decrypt('eyJpdiI6Imp2a0w1ck5lUS9jWTRKbXVWNHg3VVE9PSIsInZhbHVlIjoiRTcwU2pHZ3JMZEltM1RtU3diNjZmbXpONVl4Ymh3WHR3Ujl4UmEyUjRZdGFFVGdCRURoeXBONmJMdGlTODRUVWtTZ2k5VTJNVVB5ZHN3R2FMU0FkdHpVaGwxZndVaWlaNi9acGZXaUl0eFR0OFpYWC9pVEQ2YU9QK2MyQXVOTDFBa09Lc3hwQWlEanlwMWFSSXFQV2plb1VlQXFtQTdJNzZBRmlFQ3ZKWHJVOHd3SVovd2hhQ3JFU2NUem1hMWhvOVptcUFIVTZLa1Y3OS9ZWTQ3YlArUT09IiwibWFjIjoiZWVjODM4YzdiZjAzNjI0YWQxMTg1NmIyNGJhMDU5M2Q3ZWRhMmY5YzkxMGI4NDM0ZDBhZDY1YWJiZThiMDNjMiJ9'); $keys = json_decode(AES::decrypt('WyJxdThDblJqd2hCWXF0Y2ZCT0JveTNBPT0iLCJGdUlcLzVUMTRYK1dCTnFtZGoxYWZucUk3MVhNanYzTEpkV094QVQ3K0c1S2wrTnZyQ3ppN0pFZTNIWEs3VzdGekhDblJQXC9PUDN3bmtMRWJKVVNwWVd5RE5EaFllazh0bHdUOWxBNXdyTXVPTk1qazljd2xtaUxqXC9MZTU0QXdwSm1ZYkhaOU01bWFSUFRnMVphcmN5UU43Zm9PR0xJdHNvUnUyc1YwSEJnaTR5a0Mzc1RUdHAxSzdwMHpjRzF6TlQiXQ','tm1Ctgi7CEmabw'),true);
View::composer('*', function ($view) use($keys) { View::composer('*', function ($view) use($keys) {
foreach($keys as $k => $v) { foreach($keys as $k => $v) {
$view->with($k, $v); $view->with($k, $v);

10
composer.lock generated
View File

@ -6900,16 +6900,16 @@
}, },
{ {
"name": "facade/ignition", "name": "facade/ignition",
"version": "2.8.4", "version": "2.9.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/facade/ignition.git", "url": "https://github.com/facade/ignition.git",
"reference": "87fb348dab0ae1a7c206c3e902a5a44ba541742f" "reference": "e7db3b601ce742568b92648818ef903904d20164"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/facade/ignition/zipball/87fb348dab0ae1a7c206c3e902a5a44ba541742f", "url": "https://api.github.com/repos/facade/ignition/zipball/e7db3b601ce742568b92648818ef903904d20164",
"reference": "87fb348dab0ae1a7c206c3e902a5a44ba541742f", "reference": "e7db3b601ce742568b92648818ef903904d20164",
"shasum": "", "shasum": "",
"mirrors": [ "mirrors": [
{ {
@ -6979,7 +6979,7 @@
"issues": "https://github.com/facade/ignition/issues", "issues": "https://github.com/facade/ignition/issues",
"source": "https://github.com/facade/ignition" "source": "https://github.com/facade/ignition"
}, },
"time": "2021-04-29T13:55:26+00:00" "time": "2021-05-05T06:45:12+00:00"
}, },
{ {
"name": "facade/ignition-contracts", "name": "facade/ignition-contracts",