- camera组件能否支持闪光灯常亮?
- 需求的场景描述(希望解决的问题) 调用camera组件拍照,设置打开闪光灯时,拍照瞬间闪光灯会闪一下,但是拍下来的照片亮度还是不足。希望能否支持设置闪光灯常亮。 chooseImage API中的相机倒是支持闪光灯常亮,但是chooseImage拍照后返回,小程序就自动重启了。在社区搜索过,此问题一直有,无法解决。所以希望能够支持闪光灯常亮。 - 希望提供的能力 camera组件支持闪光灯常亮,即flash参数,除支持auto,on,off之外,追加一个alwaysOn属性。
2018-09-09 - 调用wx.request返回500 Internal Server Error
个别手机出问题,但出问题的手机总是收到500,别的手机和开发者工具就没问题。 微信扫描本帖最后的海报,小程序手机端会发起请求,但总是收到500 Internal Server Error。 [代码]{ [代码][代码]"log"[代码][代码]: {[代码] [代码] [代码][代码]"version"[代码][代码]: [代码][代码]"1.2"[代码][代码],[代码] [代码] [代码][代码]"creator"[代码][代码]: { [代码][代码]"name"[代码][代码]: [代码][代码]"WebInspector"[代码][代码], [代码][代码]"version"[代码][代码]: [代码][代码]"537.36"[代码] [代码]},[代码] [代码] [代码][代码]"pages"[代码][代码]: [],[代码] [代码] [代码][代码]"entries"[代码][代码]: [{[代码] [代码] [代码][代码]"startedDateTime"[代码][代码]: [代码][代码]"2018-08-02T08:57:31.654Z"[代码][代码],[代码] [代码] [代码][代码]"time"[代码][代码]: 2197.000026702881,[代码] [代码] [代码][代码]"request"[代码][代码]: {[代码] [代码] [代码][代码]"method"[代码][代码]: [代码][代码]"GET"[代码][代码],[代码] [代码] [代码][代码]"url"[代码][代码]: [代码][代码]"https://708721408.wenquxingkong.xyz/weapp/share/info?scene=2"[代码][代码],[代码] [代码] [代码][代码]"httpVersion"[代码][代码]: [代码][代码]"unknown"[代码][代码],[代码] [代码] [代码][代码]"headers"[代码][代码]: [{[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Accept-Encoding"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"gzip"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"charset"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"utf-8"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"content-type"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"application/json"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"referer"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"https://servicewechat.com/wx8887e802b20d536d/0/page-frame.html"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"User-Agent"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"Mozilla/5.0 (Linux; Android 7.0; HUAWEI NXT-AL10 Build/HUAWEINXT-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.143 Crosswalk/24.53.595.0 XWEB/155 MMWEBSDK/21 Mobile Safari/537.36 MicroMessenger/6.6.7.1321(0x26060739) NetType/4G Language/zh_CN MicroMessenger/6.6.7.1321(0x26060739) NetType/4G Language/zh_CN"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"x-wx-skey"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"c0469dc84cb89bbcdbf679aa9aa802c4c8591e6b"[代码] [代码] [代码][代码]}],[代码] [代码] [代码][代码]"queryString"[代码][代码]: [[代码] [代码] [代码][代码]{[代码][代码]"name"[代码][代码]: [代码][代码]"scene"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"2"[代码] [代码] [代码][代码]}],[代码] [代码] [代码][代码]"cookies"[代码][代码]: [],[代码] [代码] [代码][代码]"headersSize"[代码][代码]: -1,[代码] [代码] [代码][代码]"bodySize"[代码][代码]: 0},[代码] [代码] [代码][代码]"response"[代码][代码]: {[代码] [代码] [代码][代码]"status"[代码][代码]: 500,[代码] [代码] [代码][代码]"statusText"[代码][代码]: [代码][代码]""[代码][代码],[代码] [代码] [代码][代码]"httpVersion"[代码][代码]: [代码][代码]"unknown"[代码][代码],[代码] [代码] [代码][代码]"headers"[代码][代码]: [{[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Connection"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"keep-alive"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Content-Length"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"21"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Content-Type"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"text/plain; charset=utf-8"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Date"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"Thu, 02 Aug 2018 08:57:34 GMT"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Server"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"nginx/1.10.2"[代码] [代码] [代码][代码]},{[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Received-Millis"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"1533200253838"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Response-Source"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"NETWORK 500"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Selected-Protocol"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"http/1.1"[代码] [代码] [代码][代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"X-Android-Sent-Millis"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"1533200253777"[代码] [代码] [代码][代码]}],[代码] [代码] [代码][代码]"cookies"[代码][代码]: [],[代码] [代码] [代码][代码]"content"[代码][代码]: {[代码] [代码] [代码][代码]"size"[代码][代码]: 0,[代码] [代码] [代码][代码]"mimeType"[代码][代码]: [代码][代码]"x-unknown"[代码][代码],[代码] [代码] [代码][代码]"text"[代码][代码]: [代码][代码]"Internal Server Error"[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]"redirectURL"[代码][代码]: [代码][代码]""[代码][代码],[代码] [代码] [代码][代码]"headersSize"[代码][代码]: -1,[代码] [代码] [代码][代码]"bodySize"[代码][代码]: -1,[代码] [代码] [代码][代码]"_transferSize"[代码][代码]: 21[代码] [代码] [代码][代码]},[代码] [代码] [代码][代码]"cache"[代码][代码]: {},[代码] [代码] [代码][代码]"timings"[代码][代码]: {[代码] [代码] [代码][代码]"dns"[代码][代码]: -1,[代码] [代码] [代码][代码]"connect"[代码][代码]: -1,[代码] [代码] [代码][代码]"send"[代码][代码]: 0,[代码] [代码] [代码][代码]"wait"[代码][代码]: -10,[代码] [代码] [代码][代码]"receive"[代码][代码]: 2208.000026702881,[代码] [代码] [代码][代码]"ssl"[代码][代码]: -1},[代码] [代码] [代码][代码]"serverIPAddress"[代码][代码]: [代码][代码]""[代码][代码],[代码] [代码] [代码][代码]"connection"[代码][代码]: [代码][代码]"1.2"[代码] [代码] [代码][代码]}[代码] [代码] [代码][代码]][代码] [代码] [代码][代码]}[代码] [代码]}[代码] 我在服务器侧打印日志,是正常响应了的。 请帮忙看看可能是什么问题,多谢!
2018-08-02 - 请教,怎么在onShareAppMessage拦截分享?
- 需求的场景描述(希望解决的问题) 我在页面中设置了转发按钮发起上下文相关的分享,但是这样的话用户点击右上角菜单也就可以发起分享了。我在onShareAppMessage想拦截这种不带上下文的分享,但是实现不了。请教下怎么写代码能拦截这种分享动作? 官方实例代码以及我想做的事 [代码]Page({[代码][代码] onShareAppMessage: function (res) {[代码] [代码] if (res.from === 'button') { // 来自页面内转发按钮[代码] [代码] console.log(res.target)[代码][代码] } else {[代码] [代码] 这部分代码官方没有,我就想在这个分支里面拒绝此次分享,应该怎么实现?直接return null/undefined,抛异常,都不起作用。 [代码] [代码] }[代码][代码] [代码] [代码] return {[代码] [代码] title: '自定义转发标题', path: '/page/user?id=123' } } })[代码] - 希望提供的能力 在onShareAppMessage中设置返回值,拒绝用户发起分享。
2018-07-19 - 【BUG】+cover-view中使用font-awsome无效
cover-view中使用font-awsome无效。现象: 开发工具中可看,在预览和调试中看不到。 当在开发工具的cover-view下使用badge时,开发工具提示错误如下: Wed May 23 2018 10:46:38 GMT+0800 (中国标准时间) 渲染层网络层错误 Failed to load local font resource /FontAwesome.eot-do-not-use-local-path-./style/fontawesome.wxss&5&9 net::ERR_CACHE_MISS 点击console的链接,在源码页面显示信息: console.group("Wed May 23 2018 10:46:38 GMT+0800 (中国标准时间) 渲染层网络层错误") console.error(`Failed to load local font resource /FontAwesome.eot-do-not-use-local-path-./style/fontawesome.wxss&5&9 net::ERR_CACHE_MISS `) console.groupEnd() 因小程序片段限制不能大于100k,无法共享。出错的片段代码已经打包共享如下: 链接:https://pan.baidu.com/s/1Lux6nx2anhknp1aMCtyyKA 密码:xhbi
2018-05-23