mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-07 10:22:38 +08:00
编辑器接口优化+涂鸦
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user