小编Pra*_*esh的帖子

使用icomoon的SVG到Ico生成多个路径而不是单个对象字形

我使用illustrator创建一个SVG文件,使用icomoon将其转换为字体图标.但我对最终结果有疑问.我的图标基本上是同心圆的集合,在插图画家中保存为SVG.使用iconmoon将SVG转换为图标,我看到图标被转换为多个路径而不是单个对象.

    <span class="icon-4">
<span class="path1"></span>
<span class="path2"></span>
<span class="path3"></span>
<span class="path4"></span>
<span class="path5"></span>
<span class="path6"></span>
</span>
Run Code Online (Sandbox Code Playgroud)

链接到图像:http://imgur.com/FnWgQNF

svg adobe-illustrator

6
推荐指数
2
解决办法
5782
查看次数

PHP中的AWS SNS HTTP订阅确认

我无法获得PHP中AWS SNS Http连接的确认。我的应用程序是在Laravel 5.1上开发的

在AWS中,我创建了一个主题并添加了一个订阅。我已将端点选择为HTTP并提供了URL http://myurl.com/sns

我的PHP代码如下

public function getSnsMessage()
{
   $message = Message::fromRawPostData();
   $validator = new MessageValidator();
   // Validate the message and log errors if invalid.
   try {
       $validator->validate($message);
    }catch (InvalidSnsMessageException $e) {
       // Pretend we're not here if the message is invalid.
       http_response_code(404);
        error_log('SNS Message Validation Error: ' . $e->getMessage());
       die();
    }

    // Check the type of the message and handle the subscription.
   if ($message['Type'] === 'SubscriptionConfirmation') {
       // Confirm the subscription by sending a GET request …
Run Code Online (Sandbox Code Playgroud)

php amazon-web-services amazon-sns aws-php-sdk laravel-5.1

5
推荐指数
1
解决办法
904
查看次数