Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c6de67

Browse files
CJayHegitee-org
authored andcommitted
update upload-business/index.markdown.
Signed-off-by: Jay_he <1044295598@qq.com>
1 parent 5fbdb3c commit 0c6de67

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎upload-business/index.markdown

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,22 @@ sudo chmod -R 755 public/upload/
9090
UploadFile::getFileNetworkPath(ContainerInterface $container, $path);
9191
```
9292

93+
4. 富文本内容解码-将资源路径转为绝对路径
94+
95+
```php
96+
use App\Business\UploadBusiness\UploadFile;
97+
98+
UploadFile::contentDecode(ContainerInterface $container, $content);
99+
```
100+
101+
5. 富文本内容加码-将资源路径转为相对路径
102+
103+
```php
104+
use App\Business\UploadBusiness\UploadFile;
105+
106+
UploadFile::contentEncode(ContainerInterface $container, $content);
107+
```
108+
93109
## 底层技术
94110

95111
[phpzlc/upload](/upload/index.markdown)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /