data($result); } /** * @notes 设置店铺信息 * @return \think\response\Json * @author Tab * @date 2021/7/28 14:42 */ public function setShopInfo() { $params = (new ShopSettingsValidate())->post()->goCheck('setShopInfo'); ShopSettingLogic::setShopInfo($params); return $this->success('设置成功'); } /** * @notes 获取 备案 版权 信息 * @return \think\response\Json * @author Tab * @date 2021/7/28 15:01 */ public function getRecordInfo() { $result = ShopSettingLogic::getRecordInfo(); return $this->data($result); } /** * @notes 设置 备案 版权 信息 * @return \think\response\Json * @author Tab * @date 2021/7/28 15:22 */ public function setRecordInfo() { $params = $this->request->post(); ShopSettingLogic::setRecordInfo($params); return $this->success('设置成功'); } /** * @notes 获取分享设置 * @return \think\response\Json * @author Tab * @date 2021/7/28 15:25 */ public function getShareSetting() { $result = ShopSettingLogic::getShareSetting(); return $this->data($result); } /** * @notes 分享设置 * @return \think\response\Json * @author Tab * @date 2021/7/28 15:38 */ public function setShareSetting() { $params = (new ShopSettingsValidate())->post()->goCheck('setShareSetting'); ShopSettingLogic::setShareSetting($params); return $this->success('设置成功'); } /** * @notes 获取政策协议 * @return \think\response\Json * @author Tab * @date 2021/7/28 16:06 */ public function getPolicyAgreement() { $result = ShopSettingLogic::getPolicyAgreement(); return $this->data($result); } /** * @notes 设置政策协议 * @return \think\response\Json * @author Tab * @date 2021/7/28 16:11 */ public function setPolicyAgreement() { $params = $this->request->post(); ShopSettingLogic::setPolicyAgreement($params); return $this->success('设置成功'); } /** * @notes 设置地图秘钥 * @return \think\response\Json * @author ljj * @date 2022/3/10 5:12 下午 */ public function setMapKey() { $params = $this->request->post(); ShopSettingLogic::setMapKey($params); return $this->success('设置成功'); } /** * @notes 获取地图秘钥 * @return \think\response\Json * @author ljj * @date 2022/3/10 5:12 下午 */ public function getMapKey() { $result = ShopSettingLogic::getMapKey(); return $this->data($result); } /** * @notes 获取站点统计配置 * @return \think\response\Json * @author yfdong * @date 2024/09/20 22:24 */ public function getSiteStatistics() { $result = ShopSettingLogic::getSiteStatistics(); return $this->data($result); } /** * @notes 获取站点统计配置 * @return \think\response\Json * @author yfdong * @date 2024/09/20 22:51 */ public function setSiteStatistics() { $params = $this->request->post(); ShopSettingLogic::setSiteStatistics($params); return $this->success('设置成功', [], 1, 1); } }