shopxo/app/service/ApiService.php

37 lines
1.1 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
// +----------------------------------------------------------------------
2021-07-20 23:45:54 +08:00
namespace app\service;
2018-12-28 18:58:37 +08:00
/**
2021-07-20 23:45:54 +08:00
* api服务层
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2021-06-22
* @desc description
2018-12-28 18:58:37 +08:00
*/
2021-07-20 23:45:54 +08:00
class ApiService
{
/**
* api数据统一返回
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2021-07-20
* @desc description
* @param [array] $data [api统一返回]
*/
public static function ApiDataReturn($data)
{
return json($data);
}
}
2018-12-28 18:58:37 +08:00
?>