|
@@ -48,11 +48,11 @@ POLICY;
|
|
|
$result['accessKeySecret'] = $response->Credentials->AccessKeySecret;
|
|
|
$result['stsToken'] = $response->Credentials->SecurityToken;
|
|
|
$result['bucket'] = 'uptoyo';
|
|
|
- return $result;
|
|
|
+ return $this->jsonSuccess($result);
|
|
|
} catch (ServerException $e) {
|
|
|
- return $this->response->error($e->getMessage(), 500);
|
|
|
+ return jsonError($e->getMessage());
|
|
|
} catch (ClientException $e) {
|
|
|
- return $this->response->error($e->getMessage(), 500);
|
|
|
+ return jsonError($e->getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|