编辑器接口优化+涂鸦

This commit is contained in:
devil
2020-03-05 12:53:01 +08:00
parent 6c25c1a5d6
commit 70dd60e0a3
9 changed files with 45 additions and 37 deletions

View File

@ -11,7 +11,6 @@
namespace app\api\controller;
use app\service\UeditorService;
use app\service\ResourcesService;
/**
* 附件上传
@ -48,12 +47,7 @@ class Ueditor extends Common
*/
public function Index()
{
$ret = UeditorService::Run($this->data_request);
if($ret['code'] == 0 && !empty($ret['data']['url']))
{
$ret['data']['url'] = ResourcesService::AttachmentPathViewHandle(ResourcesService::AttachmentPathHandle($ret['data']['url']));
}
return $ret;
return UeditorService::Run($this->data_request);
}
}
?>