摘要: 打开浏览器->f12->console,最好是http开头的 #引入jq var jquery = document.createElement('script'); undefinedjquery.src = 'http://ajax.aspnetcdn.com/ajax/jquery/jquer 阅读全文
posted @ 2020-07-22 14:20 zhang_kk 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: from Crypto.Cipher import AES # aes加密解密 def pkcs7padding(self,text): """ 明文使用PKCS7填充 最终调用AES加密方法时,传入的是一个byte数组,要求是16的整数倍,因此需要对明文进行处理 :param text: 待加密内 阅读全文
posted @ 2020-05-26 15:23 zhang_kk 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 本次请求是否应该走钉钉登陆逻辑: zkk 依据UA判定,返回 true 或 false local luaConfig = require "ding_config" local hmac = require "resty.hmac" local cjson = require "cjson.saf 阅读全文
posted @ 2020-05-14 13:00 zhang_kk 阅读(511) 评论(0) 推荐(0) 编辑
摘要: local function temp_code_get_unionid(code) --时间戳 local timestamp = ngx.now()*1000 --签名计算 local app_secret = appsecret local hmac_sha256 = hmac:new(app 阅读全文
posted @ 2020-05-14 10:22 zhang_kk 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1.ansible.cfg配置文件 阅读全文
posted @ 2019-10-22 15:00 zhang_kk 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 场景:前端会先计算出文件md5值一并传送给后端 后端需要判断文件对应md5是否存在 支持多文件上传 服务端 import os import hashlib #上传文件 def fileAdd(self): my_dir = os.path.join(os.path.dirname(__file__ 阅读全文
posted @ 2019-09-17 15:02 zhang_kk 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: 代码 class BaseHandler(tornado.web.RequestHandler): # 允许跨域访问的地址 def allowMyOrigin(self): allow_list = [ 'http://127.0.0.1:7100', ] if 'Origin' in self.r 阅读全文
posted @ 2019-08-27 10:07 zhang_kk 阅读(4342) 评论(0) 推荐(0) 编辑
摘要: 封装成方法 阅读全文
posted @ 2019-08-08 17:52 zhang_kk 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 输出结果: 阅读全文
posted @ 2019-07-18 15:46 zhang_kk 阅读(383) 评论(0) 推荐(0) 编辑
摘要: mymysql.py 调用: tornado之mysql长链接 阅读全文
posted @ 2019-06-28 15:05 zhang_kk 阅读(809) 评论(0) 推荐(0) 编辑