- 博客(254)
- 资源 (46)
- 收藏
- 关注
原创 gin框架安装
设置goproxy.io代理go env -w GOPROXY=“https://goproxy.io”设置GO111MOUDLEgo env -w GO111MODULE="ongo get -u github.com//gin-gonic/gin
2022-05-04 17:36:24
245
原创 magento2 安装 sparsh 插件拓展
最近在研究magento2 用起来还是可以的 不过想做一些额外的功能 需要安装插件 到了官网找了几个免费的插件 准备安装就很烦,试了各个版本还是不行 最终去网上找了别人下载好的包装了几个,不过有的包实在找不到 必须用composer安装,经过多番尝试"repositories": [ { "type": "composer", "url": "https://plugin.company/" }, { "type": "comp
2021-07-27 14:18:35
285
1
原创 The store will not work correctly in the case when cookies are disabled
magento2网站搭建好了 顶部出现了一个The store will not work correctly in the case when cookies are disabled修改下面的文件app\code\Magento\Theme\view\frontend\templates\js\cookie_status.phtml注销js
2021-07-16 11:59:56
659
原创 request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_na
最近在linux 搭建magento2最新版 重建索引的时候报错{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":
2021-07-15 15:28:59
1506
原创 magento2 建站
根据nginx.conf.sample设置自己的站点配置upstream fastcgi_backend { server unix:/run/php-fpm/php-fpm.sock; }server{ listen 80; server_name magento.xxx.com; index index.php index.html index.htm default.php default.htm default.html; set $MAGE_RO
2021-07-14 13:24:36
344
原创 安装Docker Desktop报错WSL 2 installation is incomplete.
安装Docker Desktop报错WSL 2 installation is incomplete.这里调整了之后还是会报错 网上搜了搜是版本太低了 更新了一下 ok了更新地址
2021-06-28 17:08:41
139
原创 Facebook 获取广告系列的信息
关于如何申请开发者 请访问https://blog.csdn.net/qq_29099209/article/details/1150140131.拿到access_tokenhttps://developers.facebook.com/tools/explorer/赋值权限 然后生成access_token2.拿到bm的id链接地址,access_token用上一步的access_tokenhttps://graph.facebook.com/v10.0/me?fields=id%
2021-05-20 17:29:18
1945
11
原创 php 异步断点继续导出大文件
1点击下载时将查询语句存入数据库 $this->db->insert('excel_export', [ 'file_name' => 'orderInfo' . date('YmdHis'), 'path' => 'storage/excel_temp/', 'uid' => $user['uid'], 'type' => 1, 'created
2021-03-23 13:55:52
694
原创 FaceBook 开发者应用申请
第1步:访问链接developers.facebook.com/第2步:未登录则点击登录第3步:登录未申请则点击文档 如果已申请显示我的应用,点击我的应用,直接跳到第8步第4步:点击开始第5步:点击继续第6步:勾选同意 点击验证邮箱第7步:选择开发者第8步:点击创建应用第9步:选择管理业务集成工具第10步:输入应用名称,选择应用用途第11步:进入应用,点击设置第12步:点击设置-基本第13步:拿到应用编号和应用秘钥...
2021-03-19 19:22:02
2871
4
原创 FaceBook API 获取token
源文档地址https://developers.facebook.com/docs/marketing-apis/如图所示接口https://graph.facebook.com/oauth/access_token?client_id=xxxx&client_secret=xxx&grant_type=client_credentials
2021-03-19 19:18:05
1529
原创 php 将上传的文件转base64
$base64_file = '';if(file_exists($file)){$mime_type= pathinfo($file,PATHINFO_EXTENSION);$base64_data = base64_encode(file_get_contents($file));$base64_file = 'data:'.$mime_type.';base64,'.$base64_data;}return $base64_file;
2021-03-06 18:31:36
1394
原创 vue页面缓存查询条件
main.vue修改<template> <div id="mainlayer" :class="{ 'is-sheet': isSheet }"> <div id="app"> <keep-alive :include="include"> <router-view v-if="$route.meta.keepAlive" /> </keep-alive>
2021-02-23 11:21:49
1197
原创 多规格sku组合映射成新品
最近有个需求如下用户建立一个产品,产品下面有很多商品,每个商品下有很多sku, 有的商品又需要很多sku组合成新的套餐进行销售如下三个产品每个产品对应的sku此时我需要将一个产品的某个sku进行组合或者多个商品的sku进行组合成新的商品,如下...
2021-02-05 16:52:30
987
原创 thinkphp get请求带特殊字符和参数
在ThinkPHP/Library/Think/Dispatcher.class.php文件中修改getAction方法 $new_get = []; foreach ($_GET as $key => $value) { $new_get[str_replace('amp;','',$key)] = $value; } $_GET = $new_get;
2021-01-31 12:40:01
572
原创 python attrib判断字段是否存在操作
用python attrib操作某个属性的时候发现当属性不存在的时候会报错,不输入这个属性又不会根据值去取值,研究了一下以下操作完成对字段的校验 for i,item in enumerate(image_elements): try: check = img_element.attrib['data-imgs'] except: del image_elements[i]执行循环...
2021-01-28 14:31:09
2265
原创 内存爆表 服务器日常维护
今天打开服务器控制面板,发现内存异常,即将耗尽,平时一半都用不到现在不知道什么情况连上服务器, top 后按大写M 查看一下进程发现有几十个相同的进程然后输入ps aux | sort -k4nr | head -n 50查看占用内存前50的都是什么进程,结果全是我的抓取数据进程,先暂停抓取服务,关闭这些进程先根据关键字把这些进程筛出来ps -ef|grep pickUpData执行批量关闭命令ps -ef|grep 关键字| grep -v grep | awk '{print $
2021-01-28 11:01:41
395
原创 Python解析json之ValueError: Expecting property name enclosed in double quotes: line 1 column 2(char 1)
用python解析json数据的时候突然报错了ValueError: Expecting property name enclosed in double quotes: line 1 column 2(char 1)经过一番排查1可能是数据不是双引号{‘xxx’:‘xxxxx’}str.replace("'", '"')将单引号改为双引号2可能是字符串不是标准的json格式,例如{xxx:‘xxxxx’}此时使用demjson 解決不正常的json格式数据安装pip install d
2021-01-25 11:43:15
8349
原创 ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf
vue项目应用element-ui后报错ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf在对应的config.js内加入 module: { rules: [{ test: /\.(eot|svg|ttf|woff|woff2)(\?\S*)?$/, loader: 'file-loader' }] }在次允许可能还会报错Module not
2021-01-16 11:38:36
1126
原创 laravel guzzle ssl报错
使用guzzlecURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)设置client$client = new \GuzzleHttp\Client(['base_uri' => $host]);$client->setDefaultOption('verify', fa
2021-01-08 16:00:32
470
原创 创建uni iconfont图片
我是用的阿里云iconfont操作如下登录->资源管理->我的项目->新建项目将svg格式图标上传至项目下载,将iconfont.css 以外的文件全删掉切换回来将代码替换,并将每个url添加https:头部
2020-12-24 18:34:46
97
1
原创 jwt token 组成分析
通过jwt组件生成的token分为 header、payload、signature三部分,通过.连接第一部分 headereyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9base64解密后{"typ":"JWT","alg":"HS256"}第二部分payload{"iss":"","iat":1607949872,"exp":1609159472,"nbf":1607949872,"jti":"teQbWN5XTzwP2UeP","sub":100000,"prv
2020-12-15 10:32:50
942
原创 千万级数据测试
今日无事,想起以前面试的时候问起数据量大的相关问题,就想着模拟一下数据,做做测试和优化一千多万条数据查询全部数量用时两秒多点,百万的时候查是1秒左右,做了几个数据统计,感觉统计不多,没办法作为参考。下面进入无索引的条件查询某个值, 基本都要20秒多点加了一个索引瞬间变成0.01秒多点,尝试用like %还是这个时间,看来索引真的很有效下面又是另一个问题,索引加多了会怎么样方便测试加了10个字段的索引,明显的发现索引添加过多占用了500M 一个的时候才100多M查询速度呢?并没有变
2020-12-04 18:35:17
1415
原创 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project SpringCRUD: There are test failures.Please refer to D:\mycode\springCRUD\target\surefire-reports for the individual test results.解决方法:这是因为测试代码
2020-12-03 15:11:44
6279
1
原创 java 获取gmail邮箱邮件
package getmail;import java.util.ArrayList;import java.util.List;import java.util.Properties;import java.util.logging.Level;import java.util.logging.Logger;import javax.mail.Folder;import javax.mail.Message;import javax.mail.MessagingException;i
2020-12-02 15:31:13
2091
原创 magento 命令安装
1.下载地址https://www.magentochina.org/download-install/安装php bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \--db-host=localhost --db-name=magento --db-user=magento --db-password=magento \--admin-firstname=Magento --admin-lastname=User
2020-12-02 14:14:49
403
.net支付宝支付代码.zip
2020-08-06
云台控制虚拟手柄
2018-12-18
萤石云播放海康摄像头
2018-12-12
系统U盘制作工具
2018-10-16
antiword-0_37-windows
2018-09-12
myflow.js流程图插件
2018-09-11
科幻风UI界面
2018-09-05
Tesseract-OCR 训练工具
2018-08-21
Tesseract-OCR chi_sim.traineddata中文包
2018-08-21
交互式3D地图
2018-08-13
VC15运行库 32位 62位
2018-08-01
VC14运行库 32位 62位
2018-08-01
VC11运行库 32位 62位
2018-08-01
webcam html5 实现网站调用摄像头拍照
2018-07-25
laravel55.zip
2020-01-21
jq22d3_tree8972201805160011.zip
2019-11-28
myflow-master.rar
2019-10-10
jcanvas.min.js
2019-09-29
GetGnuWin32-0.6.3.zip
2019-06-21
SQLDumpSplitterouou sql切割工具
2019-06-05
php_mongodb拓展 7.2
2019-02-15
echart地图上钻下钻分级
2018-12-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人