- 微信支付 签名签证失败
微信支付 统一下单可以支付成功 但是支付结果通知进来 验签不过
2021-09-18 - picker 弹出后盖住其他内容
系统是鸿蒙2.0 picker 弹出后其他内容被隐藏 [图片][图片]
2021-09-15 - ios中 worker 上传文件无法监听上传进度?
// workers/request/upload.js const util = require("./util") const config = require("./config") const createSign = function (time) { var key = config.key; return util.base64.encode(util.md5(time + key + time)) }; const upload = function (data) { var time = parseInt(Date.now() / 1000); var url = data.data; let uploadTask = worker.uploadFile({ filePath: url.url, name: 'file', header: { "timestamp": time, "sign": createSign(time.toString()), }, url: config.api_url + 'common/upload', success(res) { var result = JSON.parse(res.data); worker.postMessage({ type: 'upload', index: data.index, ...result }) worker.postMessage({ type: 'progress', index: data.index, progress: 100 }) }, timeout: 0, fail(err) { worker.postMessage({ type: 'upload', code: 1, index: data.index, msg: '上传失败' }) } }) uploadTask.onProgressUpdate(function (res) { console.log(res) // ios无法打印 worker.postMessage({ type: 'progress', index: data.index, progress: res.progress }) if (res.progress == 100) { uploadTask.offProgressUpdate() } }) } worker.onMessage(data => { upload(data) })
2021-06-18 - button默认获取焦点
button怎样默认获取焦点
2017-09-07