多谢!
camera组件能否支持闪光灯常亮?- 需求的场景描述(希望解决的问题) 调用camera组件拍照,设置打开闪光灯时,拍照瞬间闪光灯会闪一下,但是拍下来的照片亮度还是不足。希望能否支持设置闪光灯常亮。 chooseImage API中的相机倒是支持闪光灯常亮,但是chooseImage拍照后返回,小程序就自动重启了。在社区搜索过,此问题一直有,无法解决。所以希望能够支持闪光灯常亮。 - 希望提供的能力 camera组件支持闪光灯常亮,即flash参数,除支持auto,on,off之外,追加一个alwaysOn属性。
2018-09-11服务端我加了打印,确认是正常处理的。而且这个500里的server填写的是的nginx。 关键是,个别手机出问题,其他手机,微信开发者工具,都没问题。 [代码]}, {[代码] [代码] [代码][代码]"name"[代码][代码]: [代码][代码]"Server"[代码][代码],[代码] [代码] [代码][代码]"value"[代码][代码]: [代码][代码]"nginx/1.10.2"[代码] [代码]},{[代码]
调用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两种可能: 用了opendata,在wxml里面找open-data,去掉。参见https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html。 已授权用户,就看你在那里显示了用户的nickName,去掉。
求助- 需求的场景描述(希望解决的问题)徐小智3个字怎么用去掉 - 希望提供的能力 [图片]
2018-07-23多谢
请教,怎么在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