初始上传
This commit is contained in:
25
app/storeapi/controller/Addon.php
Executable file
25
app/storeapi/controller/Addon.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace app\storeapi\controller;
|
||||
|
||||
class Addon extends BaseStoreApi
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->site_id = request()->siteid();
|
||||
}
|
||||
|
||||
/**
|
||||
* 插件是否存在
|
||||
*/
|
||||
public function addonIsExit()
|
||||
{
|
||||
$addon = array_filter(array_map(function($item) {
|
||||
if (addon_is_exit($item, $this->site_id)) return $item;
|
||||
}, [ 'store', 'stock', 'scale', 'weighgoods', 'cardservice' ]));
|
||||
|
||||
$addon = array_values($addon);
|
||||
|
||||
return $this->response($this->success($addon));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user