面包屑思维模型实战模型错题集结构手册流程手册自我检测专题模块
-
微信小程序前端微信小程序前端易错点收集查看
-
css/less/sass样式控制在开发过程中的一些样式控制bug规避查看
-
tp5开发小程序tp5开发小程序时错误积累查看
-
PHP错题集PHP在实际开发过程中遇到的问题查看
-
MySql数据库使用MySql在实际开发中遇到的错误总结查看
-
TP5错题集积累tp5框架在实际开发过程中遇到的问题查看
-
uni-app爬坑主要用于uni-app项目中遇到的一些问题查看
-
Vue.js易错收集vue.js项目常见错误收集整理查看
-
uni-app开发微信小程序uni-app开发微信小程序的一些爬坑积累查看
-
LinuxLinux在部署、开发、运维时遇见的错误积累查看
-
安全设计常见安全设计查看
-
Redis项目中使用redis的相关错误积累查看
-
前端特效前端特效相关错题集查看
最新博文
-
本地composer到vendor的类直接复制到线上项目的vendor文件夹会有什么问题
thinkphpClass 'PhpOffice\PhpSpreadsheet\Spreadsheet' not found
刚刚想通过tp6使用phpspreadsheet来实现导出excel,但将composer下来的类放到线上项目vendor中,一直报错not found。
TP6每次composer都会在vendor/composer文件中增加记录,如果物理操作将类放入vendor中,则不能正常应用
解决方法是
将本地的composer整个文件替换线上的composer文件
阅读更多风口下的猪2021-12-01【thinkphp】
-
render模块下,视图层js(render.js)调用逻辑层js
uni-app项目中用到bscroll做触底上拉加载更多,由于APP端不支持调用bscroll.js,所以将其封装在render视图层中。
当bscroll触底时upLoadCallBack()需要从render中调用逻辑层的加载数据。
直接在render方法中使用
this.$ownerInstance.callMethod('test', {})
test是逻辑层中被调用的方法,{}里传参数
阅读更多风口下的猪2021-11-26【uni-app】
-
在本地没问题,在线上项目显示控制器找不到
PHP
阅读更多风口下的猪2021-11-24【PHP】
-
WRONGPASS invslid username-password pair or user is disabled
Redis报这个错是密码错误,或者redis 6及以上版本实例连接redis时需要加上username,而不仅仅是密码
阅读更多风口下的猪2021-11-24【Redis】
-
NOAUTH Authentication required
Redis报这个错,说明实例化redis进行连接时没有传入密码。
有可能是项目封装的问题
我这里是TP6,解决方法是在vendor->cache->reids中设置初始就带密码
/**
* 配置参数
* @var array
*/
protected $options = [
'host' => '127.0.0.1',
'port' => 6379,
'password' => '*****',
'select' => 0,
'timeout' => 0,
'expire' => 0,
'persistent' => false,
'prefix' => '',
'tag_prefix' => 'tag:',
'serialize' => [],
];
阅读更多风口下的猪2021-11-24【Redis】
-
ERR AUTH<password> called without anypassword configured for the default user.Are you sure your conf
Redis报这个错,是因为redis没有设置密码
解决方法是
(1)在redis的配置文件redis.conf中,修改requirepass foobared为requirepass ****(密码);
(2)SSH命令行中设置redis密码
第一步:检查redis是否启动
命令:redis-cli
第二步:检查redis密码
命令:keys *
第三步:登录
命令:auth 密码
第四步:设置redis密码
如 将redis密码设置成1234567
命令:config set requirepass 1234567
第五步:检查密码是否设置成功
第六步:项目配置文件设置redis密码
更改成redis密码 如:1234567
阅读更多风口下的猪2021-12-27【Redis】
-
WRONGPASS invalid username-password pair
Redis连接Redis报错redis.exceptions.ResponseError:WRONGPASS invalid username-password pair or user is disabled.
这个问题是由于最新的Redis6+版本,在连接时认证需要username
阅读更多风口下的猪2021-11-24【Redis】
-
小程序加密jsencrypt.js使用 Uncaught TypeError: Cannot read property ‘appName‘ of undefined 已解决
JavaScript
阅读更多风口下的猪2021-11-23【JavaScript】
-
前端使用uni.uploadFile发生表单数据时,后端通过$_POST/param()等方法都获取不到
uni-app后端通过halt打印结果
array:3 [ "------WebKitFormBoundaryoANcOgIw49OcaFrf\r\nContent-Disposition:_form-data;_name" => """ "name"\r\n \r\n 张三\r\n ------WebKitFormBoundaryoANcOgIw49OcaFrf\r\n Content-Disposition: form-data; name="image"; filename="file-1636177502249"\r\n Content-Type: text/html\r\n \r\n <!DOCTYPE html>\n <html lang="zh-CN">\n \n <head>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <title>\n orderManeger\n </title>\n <script>\n var coverSupport = 'CSS' in window """ "typeof_CSS_supports_" => "== 'function' " "(CSS_supports('top:_env(a)')_||_CSS_supports('top:_constant(a)'))\n____________document_write('<meta_name" => """ "viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' (coverSupport ? ', viewport-fit=cover' : '') '" />')\n </script>\n <link rel="stylesheet" href="/static/index.9ffdaeb8.css" />\n </head>\n \n <body>\n <noscript>\n <strong>Please enable JavaScript to continue.</strong>\n </noscript>\n <div id="app"></div>\n <!-- built files will be auto injected -->\n <script type="text/javascript" src="/static/js/chunk-vendors.js"></script><script type="text/javascript" src="/static/js/index.js"></script></body>\n \n </html>\n <script>\n (function () {\r\n var userAgent = navigator.userAgent\r\n window.addEventListener('resize', function () {\r\n if (navigator.userAgent !== userAgent) {\n /* eslint-disable no-undef */\r\n location.reload()\r\n }\r\n })\r\n })()\n \n </script>\n \r\n ------WebKitFormBoundaryoANcOgIw49OcaFrf--\r\n """ ]
原来是前端接口封装时,声明其header内容
'Content-Type':'application/x-www-form-urlencoded'
注意,表单提交不要声明content-type
阅读更多风口下的猪2021-11-06【uni-app】
-
phpMyadmin可视化添加Json格式数据时,报错Invalid JSON text: "Missing a name for object member
MySQL注意可视化操作添加json数据时,一定要严格采用json格式,键名和值都必须要用双引号括起来
eg:
{"namd":"张三","sex":"男"}
阅读更多风口下的猪2021-11-05【MySQL】
-
加密字符串在GET传输过程中,加号会被默认替换为空格,需要替换回来
thinkphpGET传输过程中,在遇到解密/签名情况下,参数中的加号会默认被替换为空格。那么后端在接受到参数后,则必须要将参数中的空格替换回加号才能使用
$getCrypt=$getData['crypt'];$normalCrypt=str_replace(' ','+',$getCrypt);
阅读更多风口下的猪2021-11-05【thinkphp】