move commonEnv

This commit is contained in:
qkqpttgf 2020-02-23 12:53:57 +08:00 committed by GitHub
parent 8da8b75868
commit 7d62c2df78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -1,19 +1,5 @@
<?php <?php
$commonEnv = [
//'Region',
//'SecretId',
//'SecretKey',
//'admin',
'adminloginpage',
'background',
//'disktag',
'language',
'passfile',
'sitename',
'theme',
];
function printInput($event, $context) function printInput($event, $context)
{ {
if (strlen(json_encode($event['body']))>500) $event['body']=substr($event['body'],0,strpos($event['body'],'base64')+30) . '...Too Long!...' . substr($event['body'],-50); if (strlen(json_encode($event['body']))>500) $event['body']=substr($event['body'],0,strpos($event['body'],'base64')+30) . '...Too Long!...' . substr($event['body'],-50);