11 2020 档案
摘要:{% extends '../../base.html' %}{% block title %}学生列表{% endblock %}{% block content %} <body> <div class="x-nav"> <span class="layui-breadcrumb"> <a hr
阅读全文
摘要:r = gin.Default()//解决跨域r.Use(Cors()) func Cors() gin.HandlerFunc { return func(c *gin.Context) { method := c.Request.Method c.Header("Access-Control-A
阅读全文
摘要:buf := make([]byte, 1024)n, _ := c.Request.Body.Read(buf)c.Request.Body = ioutil.NopCloser(bytes.NewReader(buf[:n]))j := buf[0:n]fmt.Println("body:",
阅读全文
摘要:14 13 * * * curl -H "Content-type: application/json" -X POST -d '{"version": "1.0"}' http://www.baidu.com 每天13:14通过POST方式请求http://www.baidu.com,携带参数为{
阅读全文
摘要:go env -w GOPROXY=https://goproxy.cn,direct
阅读全文
摘要:修改nginx配置文件server { listen 80; server_name test_go.flyfly520.club; location / { proxy_pass http://127.0.0.1:8081/; } }重启nginx后台启动gin编译后的文件nohup ./main
阅读全文
摘要:linux模式: set CGO_ENABLED=0 set GOOS=linux windows模式: set GOARCH=amd64 set GOOS=windows mac模式: SET CGO_ENABLED=0 SET GOOS=darwin SET GOARCH=amd64
阅读全文
摘要:1.登录微信公众平台,右键检查,然后搜索window.wx.uin,会看到类似window.wx.uin="12345678" || "0"的结果,复制数字使用base64工具加密即可 2.然后替换掉连接中的__biz参数 https://mp.weixin.qq.com/mp/profile_ex
阅读全文
摘要:Creating a "topthink/think=5.1.*" project at "./fyiyy"Installing topthink/think (v5.1.40) - Installing topthink/think (v5.1.40): Extracting archiveCre
阅读全文
摘要:centos8使用composer安装thinkphp5报错: 原因:php禁用了proc_open函数 解决方法:在php.ini中 查找disable_functions选项中是否有proc_open,如果有去掉即可。
阅读全文
摘要:centos8使用pip3 install mysqlclient 报错如下: Collecting mysqlclient Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/a5/e1/e5f2b231c05dc51d9d87f
阅读全文