当前位置: 首页 > news >正文

为了解决地图引入鉴权失败的解决方案

在以下文件中需要添加相应代码

app/controller/CollageProduct.php

app/view/designer_page/designer_editor.html

app/view/designer_page/designer.html

app/controller/Freight.php

app\controller\Business.php

app\controller\DesignerPage.php

只有这样才能保证https://map.qq.com/api/js?v=2.exp&key={$sysset_webinfo.map_key_qq}中正确获取到{$sysset_webinfo.map_key_qq}的值,有些需要添加进入if ($record) {中}

app\controller\Mendian.php

// 从sysset表中查询name为'webinfo'的记录$record = db('sysset')->where('name', 'webinfo')->find();if ($record) {// 如果查询到记录,则将值赋给$sysset_webinfo$sysset_webinfo = $record['value']; // 假设数据是存储在'value'字段中} else {// 如果没有查询到记录,可以根据需要设置默认值或进行处理$sysset_webinfo = null;}$sysset_webinfo=json_decode($sysset_webinfo, true);// 以下是使用$sysset_webinfo的代码,例如传递到视图
// 从sysset表中查询name为'webinfo'的记录$record = Db::table('ddwx_sysset')->where('name', 'webinfo')->find();if ($record) {// 如果查询到记录,则将值赋给$sysset_webinfo$sysset_webinfo = $record['value']; // 假设数据是存储在'value'字段中} else {// 如果没有查询到记录,可以根据需要设置默认值或进行处理$sysset_webinfo = null;}$sysset_webinfo=json_decode($sysset_webinfo, true);// 以下是使用$sysset_webinfo的代码,例如传递到视图View::assign('sysset_webinfo', $sysset_webinfo);
// 如果查询到记录,则将值赋给$sysset_webinfo$sysset_webinfo = $record['value']; // 假设数据是存储在'value'字段中} else {// 如果没有查询到记录,可以根据需要设置默认值或进行处理$sysset_webinfo = null;}$sysset_webinfo=json_decode($sysset_webinfo, true);// 以下是使用$sysset_webinfo的代码,例如传递到视图View::assign('sysset_webinfo', $sysset_webinfo);

app\controller\Mpfans.php

订阅模板消息修改条件:if($k2!=0 && $k2!=count($fields)-1)

	foreach($tmpllist as $k=>$v){if($v['title']=='订阅模板消息'){unset($tmpllist[$k]);}else{$fields = explode('!^!',str_replace(["\r\n","\r","\n"],'!^!',$v['content']));//dump($fields);$fieldarr = [];foreach($fields as $k2=>$v2){if($k2!=0 && $k2!=count($fields)-1){$v2 = str_replace('.DATA}}','',$v2);$fieldarr[] = explode('{{',$v2);}}//dump($fieldarr);$tmpllist[$k]['fields'] = $fieldarr;}}

http://www.lryc.cn/news/407782.html

相关文章:

  • [ptrade交易实战] 第十八篇 期货查询类函数和期货设置类函数
  • STM32智能家居控制系统教程
  • FPGA 中的 IOE与IO BANK
  • ADetailer模型+Stable Diffusion的inpainting功能是如何对遮罩区域进行修复生成的ADetailer
  • 【博士每天一篇文献-综述】2024机器遗忘最新综述之一:An overview of machine unlearning
  • 【机器学习】Jupyter Notebook如何使用之基本步骤和进阶操作
  • C++ | Leetcode C++题解之第279题完全平方数
  • Vue 3 响应式高阶用法之 `shallowRef()` 详解
  • 流量录制与回放:jvm-sandbox-repeater工具详解
  • 内网渗透—内网穿透工具NgrokFRPNPSSPP
  • 嵌入式中传感器数据处理方法
  • 生成式 AI 的发展方向,是 Chat 还是 Agent?
  • 金字塔监督在人脸反欺骗中的应用
  • vue3——两种利用自定义指令实现防止按钮重复点击的方法
  • Chrome谷歌浏览器Console(控制台)显示文件名及行数
  • Vue3+Element Plus 实现table表格中input的验证
  • 安宝特方案|解放双手,解决死角,AR带来质量监督新体验
  • Django教程(005):基于ORM操作数据库的部门管理系统
  • git等常用工具以及cmake
  • Mybatis(四)特殊SQL的查询:模糊查询、批量删除、动态设置表明、添加功能获取自增的主键
  • JS原型与原型链
  • Python编程学习第一篇——Python零基础快速入门(六)(4)异常处理
  • GraphHopper-map-navi_路径规划、导航(web前端页面版)
  • 2-46 基于matlab的声音信号的短时能量、短时过零率、端点检测
  • 力扣630.课程表 II
  • 数字IC后端流程简述
  • 数学建模--整数规划和非线性规划
  • Linux-查看dd命令进度
  • 高效微调 100 多种大语言模型:先计算法,急速推理!
  • opencv grabCut前景后景分割去除背景