IT门户, 中国互联网人工智能物联网行业资讯平台--公众IT
新闻来源:互联网资料整理       发布时间:2023/4/5 13:57:57       共计:4635 浏览

前言:

9小时前小编发现微信小程序用户:【。】提出了一个关于“我為什麼不能上傳圖片?”的问题,在问题中开发者。对该问题做了如下阐述:

问题类型:


  • API和组件:

问题描述:

该图片引用微信开放社区

然後我把這個的文字全部copy過來

该图片引用微信开放社区

WAServiceMainContext.js:2 [system] WeChatLib: 2.22.0 (2022.2.14 23:40:30)

WAServiceMainContext.js:2 [Event] 21 listeners of event AppRoute have been added, possibly causing memory leak.

q @ WAServiceMainContext.js:2

Y._on @ WAServiceMainContext.js:2

Y.on @ WAServiceMainContext.js:2

internalOnMethod @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

g @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

x @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

emit @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

F @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

S @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

v @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

E @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

emit @ WAServiceMainContext.js:2

W @ WAServiceMainContext.js:2

w @ WAServiceMainContext.js:2

c @ VM8 asdebug.js:1

(anonymous) @ instanceframe?s=1647138839257&autoload:11

(anonymous) @ WAServiceMainContext.js:2

n @ WAServiceMainContext.js:2

Promise.then (async)

o @ WAServiceMainContext.js:2

e.exports @ WAServiceMainContext.js:2

re @ WAServiceMainContext.js:2

ce @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

open @ assubloader.js:1

setContextFrameReady @ assubloader.js:1

onDidContextFrameReady @ assubloader.js:1

setReady @ VM11 subasdebug.js:1

t.__subcontext_ready_to_evaluate__ @ VM11 subasdebug.js:1

(anonymous) @ appContext?id=ifr-1_1:6

WAServiceMainContext.js:2 [system] Subpackages: N/A

WAServiceMainContext.js:2 [system] LazyCodeLoading: false

[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 App: onLaunch have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 App: onShow have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/index/index

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/dogedit/dogedit

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/upload/upload

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/dogdet/dogdet

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/dogpic/dogpic

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/dogaddpre/dogaddpre

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/dogaddcomp/dogaddcomp

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/myinfo/myinfo

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/feedlist/feedlist

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/doglist/doglist

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/dogfriend/dogfriend

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/aboutwang/aboutwang

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/greeting-card/greeting-card

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Register: pages/greeting-card-add/greeting-card-add

WAServiceMainContext.js:2 [system] Launch Time: 5294 ms

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 On app route: pages/index/index

VM72:18 WXMLRT_$gwx:./pages/index/index.wxml:block:8:8: wx:key=”” does not look like a valid key name.

_wp @ VM72:18

m11 @ VM72:1873

(anonymous) @ VM72:1943

Vr @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

pn.create @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

b.prepare @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

b._advancedCreate @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

b.createWithGenerics @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

ta @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

_a @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

create @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

jt @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

Wt @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

Y.emit @ WAServiceMainContext.js:2

emit @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

Y.emit @ WAServiceMainContext.js:2

emit @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

c @ VM8 asdebug.js:1

l @ VM8 asdebug.js:1

(anonymous) @ VM8 asdebug.js:1

g @ VM8 asdebug.js:1

f @ VM8 asdebug.js:1

(anonymous) @ VM8 asdebug.js:1

_ws.onmessage @ VM8 asdebug.js:1

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Update view with init data

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/index/index: onLoad have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/index/index: onShow have been invoked

index.js? [sm]:41 CACHE.isIndexFirstIn==true

[WXML Runtime warning] ./pages/index/index.wxml

 wx:key=”” does not look like a valid key name.

   6 |     </view>

   7 |     <view class=”page__bd”>

>  8 |       <block wx:for=”{{petList}}” wx:for-item=”item” wx:key=””>

     |        ^

   9 |         <view class=”item_group” data-petid=”{{item.id}}” bindtap=”navToPetDet”>

  10 |           <view class=”pet_avatar”>

  11 |               <image src=”{{item.avatar}}”></image>

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Invoke event onReady in page: pages/index/index

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/index/index: onReady have been invoked

VM8 asdebug.js:1 Sun Mar 13 2022 10:34:04 GMT+0800 (中国标准时间) 配置中关闭合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书检查

VM8 asdebug.js:1 工具未校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书。

checkUrl @ VM8 asdebug.js:1

(anonymous) @ VM8 asdebug.js:1

b @ VM8 asdebug.js:1

createRequestTask @ VM8 asdebug.js:1

invoke @ VM8 asdebug.js:1

invoke @ WAServiceMainContext.js:2

ce @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

Bt @ WAServiceMainContext.js:2

bp @ WAServiceMainContext.js:2

_p @ WAServiceMainContext.js:2

s @ WAServiceMainContext.js:2

mp @ WAServiceMainContext.js:2

Pg @ WAServiceMainContext.js:2

createRequestTask @ WAServiceMainContext.js:2

execute @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

t.<computed> @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

l @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

value @ apihook.js?t=wechat&s=1647138820483&v=fdbf07308165518eff1d71ab633264c7:1

(anonymous) @ httpService.js? [sm]:11

$ @ WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2

HttpService @ httpService.js? [sm]:10

wxLogin @ remoteDataService.js? [sm]:4

success @ index.js? [sm]:18

s.<computed> @ WAServiceMainContext.js:2

Zd @ WAServiceMainContext.js:2

success @ WAServiceMainContext.js:2

d @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

a @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

Ct @ WAServiceMainContext.js:2

(anonymous) @ WAServiceMainContext.js:2

(anonymous) @ VM8 asdebug.js:1

C @ VM8 asdebug.js:1

(anonymous) @ VM8 asdebug.js:1

g @ VM8 asdebug.js:1

f @ VM8 asdebug.js:1

(anonymous) @ VM8 asdebug.js:1

_ws.onmessage @ VM8 asdebug.js:1

Show 16 more frames

httpService.js? [sm]:34 请求失败的地址:http://192.168.3.116/api/wx/login/doLogin

httpService.js? [sm]:35 失败后的信息:[object Object]

[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/dogaddpre/dogaddpre] 将被索引

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 On app route: pages/dogaddpre/dogaddpre

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/index/index: onHide have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Update view with init data

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogaddpre/dogaddpre: onLoad have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogaddpre/dogaddpre: onShow have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Invoke event onReady in page: pages/dogaddpre/dogaddpre

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogaddpre/dogaddpre: onReady have been invoked

[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/dogedit/dogedit] 将被索引

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 On app route: pages/dogedit/dogedit

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogaddpre/dogaddpre: onHide have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Update view with init data

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogedit/dogedit: onLoad have been invoked

dogedit.js? [sm]:19 Return value

dogedit.js? [sm]:20 {}

dogedit.js? [sm]:21 {}

dogedit.js? [sm]:23 endDate 2022-03-13

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogedit/dogedit: onShow have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Invoke event onReady in page: pages/dogedit/dogedit

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogedit/dogedit: onReady have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogedit/dogedit: onHide have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 App: onHide have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 App: onShow have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogedit/dogedit: onShow have been invoked

dogedit.js? [sm]:132 {birthday: “2017-01-01”}

dogedit.js? [sm]:133 {birthdayOk: true}

dogedit.js? [sm]:139 go value

dogedit.js? [sm]:140 {src: “7xLqYKTXEeItf437864a98c42f04b332f0d3dce247dd.jpg”, pet: “{“birthday”:”2017-01-01″}”, petVali: “{“birthdayOk”:true}”}

[sitemap 索引情况提示] 根据 sitemap 的规则[0],当前页面 [pages/upload/upload?src=http%3A%2F%2Ftmp%2F7xLqYKTXEeItf437864a98c42f04b332f0d3dce247dd.jpg&pet=%7B%22birthday%22%3A%222017-01-01%22%7D&petVali=%7B%22birthdayOk%22%3Atrue%7D] 将被索引

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 On app route: pages/upload/upload

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/dogedit/dogedit: onUnload have been invoked

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Update view with init data

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/upload/upload: onLoad have been invoked

upload.js? [sm]:93 {“birthday”:”2017-01-01″}

upload.js? [sm]:94 {“birthdayOk”:true}

upload.js? [sm]:101 {birthday: “2017-01-01”}

upload.js? [sm]:102 {birthdayOk: true}

upload.js? [sm]:105 height===413

upload.js? [sm]:108 wecropper is ready for work!

upload.js? [sm]:125 before canvas draw,i can do something

upload.js? [sm]:126 current canvas context: pc {actions: Array(0), path: Array(0), subpath: Array(0), webviewId: 5, canvasId: “cropper”, …}

upload.js? [sm]:129 height===413

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/upload/upload: onShow have been invoked

we-cropper.js? [sm]:252 10 56.5

upload.js? [sm]:125 before canvas draw,i can do something

upload.js? [sm]:126 current canvas context: pc {actions: Array(1), path: Array(0), subpath: Array(3), webviewId: 5, canvasId: “cropper”, …}

upload.js? [sm]:120 picture loaded

upload.js? [sm]:121 current canvas context: pc {actions: Array(0), path: Array(0), subpath: Array(3), webviewId: 5, canvasId: “cropper”, …}

[pages/upload/upload] canvas 2d 接口支持同层渲染且性能更佳,建议切换使用。详见文档:https://developers.weixin.qq.com/miniprogram/dev/component/canvas.html#Canvas-2D-%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 Invoke event onReady in page: pages/upload/upload

WASubContext.js?t=wechat&s=1647138820483&v=2.22.0:2 pages/upload/upload: onReady have been invoked

httpService.js? [sm]:75 请求失败的地址:http://192.168.3.116/api/wx/uploadFile/fileUploadAction

httpService.js? [sm]:76 失败后的信息:[object Object]

注:以上是微信小程序开发者:”。”对于本问题的一些阐述,这里做一个引用,我们将实时关注微信小程序助手对该问题提出的解决方案。

解决方案:

【1小时前】微信小程序技术运营专员对用户。提出的我為什麼不能上傳圖片?给予如下回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

结语:

微信官方旗下的全域流量给智能小程序用于推广,其推广信息可以出现在微信官方App首页推荐的信息流之中,也可以出现在自然搜索结果立,还可以出现在微信文章中。这意味着微信官方智能小程序的开发者可在微信官方全域流量范围获得曝光,加上人工智能精准匹配技术,大大增加触及潜在目标用户的机会。

如果您也在使用微信小程序,请关注我们,如果您有关于微信小程序的使用问题请关注我们,如果您要找百度小程序模板、微信小程序模板请关注小程序模板网或者去微信开放社区找官方人员给予解决,相信微信官方在小程序上的发力会是一个里程碑!

版权说明:
本网站凡注明“公众IT 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
您可以扫描右侧微信二维码联系我们。
网站首页 关于我们 联系我们 合作联系 会员说明 新闻投稿 隐私协议 网站地图