Files
shopxo/app/api/controller/Ueditor.php

54 lines
1.4 KiB
PHP
Raw Normal View History

2018-12-28 18:58:37 +08:00
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
2021-03-16 10:34:52 +08:00
// | Copyright (c) 2011~2099 http://shopxo.net All rights reserved.
2018-12-28 18:58:37 +08:00
// +----------------------------------------------------------------------
2021-03-16 10:34:52 +08:00
// | Licensed ( https://opensource.org/licenses/mit-license.php )
2018-12-28 18:58:37 +08:00
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------
2019-06-23 00:27:49 +08:00
namespace app\api\controller;
2018-12-28 18:58:37 +08:00
2021-07-20 23:45:54 +08:00
use app\service\ApiService;
2019-08-06 18:25:00 +08:00
use app\service\UeditorService;
2018-12-28 18:58:37 +08:00
/**
2019-08-06 18:25:00 +08:00
* 附件上传
2018-12-28 18:58:37 +08:00
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-01T21:51:08+0800
*/
class Ueditor extends Common
{
2019-10-05 22:50:06 +08:00
/**
* 构造方法
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-03T12:39:08+0800
*/
public function __construct()
{
// 调用父类前置方法
parent::__construct();
2019-10-05 22:50:32 +08:00
// 是否登录
$this->IsLogin();
2019-10-05 22:50:06 +08:00
}
2018-12-28 18:58:37 +08:00
2019-08-06 18:25:00 +08:00
/**
* 运行入口
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-08-06
* @desc description
2018-12-28 18:58:37 +08:00
*/
2019-10-05 22:50:06 +08:00
public function Index()
{
2021-07-20 23:45:54 +08:00
return ApiService::ApiDataReturn(UeditorService::Run($this->data_request));
2019-10-05 22:50:06 +08:00
}
2018-12-28 18:58:37 +08:00
}
?>