success('获取成功', ShopStorageLogic::lists()); } /** * @notes 存储配置信息 * @return Json * @author suny * @date 2021/9/9 4:02 下午 */ public function index(): Json { $param = (new StorageValidate())->get()->goCheck('index'); return $this->success('获取成功', ShopStorageLogic::index($param)); } /** * @notes 设置存储参数 * @author 张无忌 * @date 2021/7/28 10:40 */ public function setup(): Json { $params = (new StorageValidate())->post()->goCheck('setup'); $result = ShopStorageLogic::setup($params); if($result === true){ return $this->success('配置成功',[],1,1); }else{ return $this->success($result,[],1,1); } } /** * @notes 切换存储方式 * @author suny * @date 2021/9/9 11:19 上午 */ public function change(): Json { $params = (new StorageValidate())->post()->goCheck('change'); ShopStorageLogic::change($params); return $this->success('切换成功'); } }