Skip to content

Commit

Permalink
fix: Error in install
Browse files Browse the repository at this point in the history
qkqpttgf authored Jun 11, 2020
1 parent e439ed8 commit bb8c1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/AliyunFC.php
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@ function install()
$AccessKeySecret = $_POST['AccessKeySecret'];
$tmp['AccessKeySecret'] = $AccessKeySecret;
}
$response = json_decode(SetbaseConfig($tmp, $_SERVER['accountId'], $_SERVER['region'], $_SERVER['service_name'], $_SERVER['function_name'], $AccessKeyID, $AccessKeySecret), true);
$response = SetbaseConfig($tmp, $_SERVER['accountId'], $_SERVER['region'], $_SERVER['service_name'], $_SERVER['function_name'], $AccessKeyID, $AccessKeySecret);
if (api_error($response)) {
$html = api_error_msg($response);
$title = 'Error';
@@ -317,7 +317,7 @@ function api_error($response)

function api_error_msg($response)
{
return $response;
return json_encode( $response, JSON_PRETTY_PRINT );
return $response['Error']['Code'] . '<br>
' . $response['Error']['Message'] . '<br><br>
function_name:' . $_SERVER['function_name'] . '<br>

0 comments on commit bb8c1af

Please sign in to comment.