Skip to content

Commit

Permalink
fix: #190616 保存静态资源
Browse files Browse the repository at this point in the history
  • Loading branch information
bellorchid committed Jun 17, 2019
1 parent 15ff84a commit b867472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ApiBundle/Api/Resource/Setting/WeChatSettingFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class WeChatSettingFilter extends Filter

protected function publicFields(&$data)
{
$data['official_qrcode'] = $this->convertFilePath($data['official_qrcode']);
$index = strpos($data['official_qrcode'], '//');
$data['official_qrcode'] = (false !== $index && 0 === $index) ? $data['official_qrcode'] : $this->convertFilePath($data['official_qrcode']);
}
}

0 comments on commit b867472

Please sign in to comment.