post()->goCheck(); (new GoodsSettingsLogic())->setConfig($params); return $this->success('设置成功',[],1, 1); } /** * @notes 查看商品配置 * @return \think\response\Json * @author ljj * @date 2021/7/26 6:04 下午 */ public function getConfig() { $result = (new GoodsSettingsLogic())->getConfig(); return $this->success('获取成功',$result); } /** * @notes 设置商品采集配置 * @return \think\response\Json * @author ljj * @date 2023/3/16 6:19 下午 */ public function setGatherKey() { $params = (new GoodsSettingsValidate())->post()->goCheck(); (new GoodsSettingsLogic())->setGatherKey($params); return $this->success('设置成功',[],1, 1); } /** * @notes 获取商品采集配置 * @return \think\response\Json * @author ljj * @date 2023/3/16 6:19 下午 */ public function getGatherKey() { $result = (new GoodsSettingsLogic())->getGatherKey(); return $this->success('获取成功',$result); } }