o2team / taro-ebook-source

Taro 掘金小册源码
232 stars 71 forks source link

你好,请问一下云函数如何部署,直接将cloud目录拷到cloudfunctions下面吗 #5

Closed jackylee1 closed 5 years ago

jackylee1 commented 5 years ago

你好,请问一下云函数如何部署,直接将cloud目录拷到cloudfunctions下面吗

Bless-L commented 5 years ago

函数写好后,在project.config.json里指定云函数目录,然后直接在微信开发者工具部署上传

jackylee1 commented 5 years ago

你好,请问可以详细一下步骤吗?不是很清楚呢

jackylee1 commented 5 years ago

谢谢

Bless-L commented 5 years ago

你现在是遇到什么问题?部署不成功还是怎样

jackylee1 commented 5 years ago

部署不成功,我已经安装好了开发环境,然后在client目录下执行taro build --type weapp --watch 打开微信开发者工具,选择目录为编译好的dist目录,appid填我的,但是没法选择云开发模式啊,不知道为什么。还有打开之后,我如何使用doc下的json数据呢?请指教,谢谢

jackylee1 commented 5 years ago

appservice?t=1545800124709:2496 Wed Dec 26 2018 12:55:28 GMT+0800 (CST) 接口调整 VM395:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM395:1 operateWXData @ appservice?t=1545800124709:2496 invoke @ appservice?t=1545800124709:2496 invoke @ WAService.js:1 J @ WAService.js:1 ie @ WAService.js:1 getUserInfo @ WAService.js:1 (anonymous) @ WAService.js:1 ky.(anonymous function) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ wx.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ wx.js:147 (anonymous) @ wx.js:147 (anonymous) @ wx.js:147 getWxUserData @ wx.js:51 _callee$ @ app.js:101 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ app.js:27 (anonymous) @ app.js:27 (anonymous) @ app.js:27 componentWillMount @ app.js:117 onLaunch @ index.js:3848 (anonymous) @ WAService.js:1 e @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ app.js:132 require @ WAService.js:1 (anonymous) @ VM522:1 scriptLoaded @ appservice?t=1545800124709:2770 VM395:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能! console.warn @ VM395:1 createComponent @ index.js:3295 (anonymous) @ edit_box.js:170 require @ WAService.js:1 (anonymous) @ VM522:120 scriptLoaded @ appservice?t=1545800124709:2770 VM395:1 TypeError: Cannot read property 'colorInfo' of undefined at Connect._createData (edit_box.js:107) at Object.createComponent (index.js:3293) at edit_box.js:170 at require (WAService.js:1) at :120:7 at HTMLScriptElement.scriptLoaded (appservice?t=1545800124709:2770) console.warn @ VM395:1 createComponent @ index.js:3296 (anonymous) @ edit_box.js:170 require @ WAService.js:1 (anonymous) @ VM522:120 scriptLoaded @ appservice?t=1545800124709:2770 redux-logger.js:163 action REQUEST_HOME @ 12:55:29.294 redux-logger.js:170 prev state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} redux-logger.js:172 action {type: "REQUEST_HOME", payload: null} redux-logger.js:176 next state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} home.js:119 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new e (WAService.js:1) at u (WAService.js:1) at Object.t.returnAsFinalCloudSDKError (WAService.js:1) at Function.success (WAService.js:1) at WAService.js:1 at _e (WAService.js:1) at ht. (WAService.js:1) at ht.emit (WAService.js:1) at ii (WAService.js:1) at WAService.js:1 appservice?t=1545800124709:2496 Wed Dec 26 2018 12:55:30 GMT+0800 (CST) 配置中关闭合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书检查 VM395:1 工具未校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书。 console.warn @ VM395:1 n @ appservice?t=1545800124709:2496 h @ appservice?t=1545800124709:2496 createRequestTask @ appservice?t=1545800124709:2496 invoke @ appservice?t=1545800124709:2496 invoke @ WAService.js:1 J @ WAService.js:1 ie @ WAService.js:1 (anonymous) @ WAService.js:1 oi @ WAService.js:1 i @ WAService.js:1 t @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 run @ index.js:3912 request @ index.js:3886 (anonymous) @ index.js:3944 request @ index.js:3929 _callee2$ @ index.js:79 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getOpenId @ index.js:99 _callee3$ @ index.js:112 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getIsAuth @ index.js:161 componentDidMount @ index.js:224 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:1 p.callPageLifeTime @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 n @ WAService.js:1 e @ appservice?t=1545800124709:2496 r.registerCallback.t @ appservice?t=1545800124709:2496 l.forEach.t @ appservice?t=1545800124709:2496 (anonymous) @ appservice?t=1545800124709:2496 s.onmessage @ appservice?t=1545800124709:2496 appservice?t=1545800124709:2496 Wed Dec 26 2018 12:55:30 GMT+0800 (CST) 接口调整 VM395:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM395:1 operateWXData @ appservice?t=1545800124709:2496 invoke @ appservice?t=1545800124709:2496 invoke @ WAService.js:1 J @ WAService.js:1 ie @ WAService.js:1 getUserInfo @ WAService.js:1 (anonymous) @ WAService.js:1 ky.(anonymous function) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ index.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getUserInfo @ index.js:51 _callee3$ @ index.js:117 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getIsAuth @ index.js:161 componentDidMount @ index.js:224 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:1 p.callPageLifeTime @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 n @ WAService.js:1 e @ appservice?t=1545800124709:2496 r.registerCallback.t @ appservice?t=1545800124709:2496 l.forEach.t @ appservice?t=1545800124709:2496 (anonymous) @ appservice?t=1545800124709:2496 s.onmessage @ appservice?t=1545800124709:2496 appservice?t=1545800124709:2496 Wed Dec 26 2018 12:55:30 GMT+0800 (CST) 接口调整 VM395:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM395:1 operateWXData @ appservice?t=1545800124709:2496 invoke @ appservice?t=1545800124709:2496 invoke @ WAService.js:1 J @ WAService.js:1 ie @ WAService.js:1 getUserInfo @ WAService.js:1 (anonymous) @ WAService.js:1 ky.(anonymous function) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ index.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getUserInfo @ index.js:51 _callee2$ @ index.js:183 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:33 (anonymous) @ index.js:33 (anonymous) @ index.js:33 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 setTimeout (async) setTimeout @ WAService.js:1 componentDidMount @ index.js:176 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:1 p.callPageLifeTime @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 n @ WAService.js:1 e @ appservice?t=1545800124709:2496 r.registerCallback.t @ appservice?t=1545800124709:2496 l.forEach.t @ appservice?t=1545800124709:2496 (anonymous) @ appservice?t=1545800124709:2496 s.onmessage @ appservice?t=1545800124709:2496 index.js:38 {errMsg: "getUserInfo:fail scope unauthorized"} index.js:39 微信登录或用户接口故障 index.js:121 Uncaught (in promise) TypeError: Cannot read property 'userInfo' of null at _callee3$ (http://127.0.0.1:47417/appservice/utils/index.js:121:29) at tryCatch (http://127.0.0.1:47417/appservice/npm/regenerator-runtime/runtime.js:62:40) at Generator.invoke [as _invoke] (http://127.0.0.1:47417/appservice/npm/regenerator-runtime/runtime.js:281:22) at Generator.prototype.(anonymous function) [as next] (http://127.0.0.1:47417/appservice/npm/regenerator-runtime/runtime.js:110:21) at step (http://127.0.0.1:47417/appservice/utils/index.js:173:191) at http://127.0.0.1:47417/appservice/utils/index.js:173:361 at _callee3$ @ index.js:121 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getIsAuth @ index.js:161 componentDidMount @ index.js:224 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:1 p.callPageLifeTime @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 n @ WAService.js:1 e @ appservice?t=1545800124709:2496 r.registerCallback.t @ appservice?t=1545800124709:2496 l.forEach.t @ appservice?t=1545800124709:2496 (anonymous) @ appservice?t=1545800124709:2496 s.onmessage @ appservice?t=1545800124709:2496 index.js:38 {errMsg: "getUserInfo:fail scope unauthorized"} index.js:39 微信登录或用户接口故障 index.js:4026 Uncaught (in promise) {errMsg: "getStorage:fail data not found"} obj.(anonymous function) @ index.js:4026 function.e.(anonymous function) @ WAService.js:1 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 function.setTimeout @ appservice?t=1545800124709:2496 (anonymous) @ WAService.js:1 (anonymous) @ WAService.js:1 setTimeout (async) setTimeout @ WAService.js:1 m @ appservice?t=1545800124709:2496 r.registerCallback.t @ appservice?t=1545800124709:2496 l.forEach.t @ appservice?t=1545800124709:2496 (anonymous) @ appservice?t=1545800124709:2496 s.onmessage @ appservice?t=1545800124709:2496 wx.js:38 {errMsg: "getUserInfo:fail scope unauthorized"} wx.js:39 微信登录或用户接口故障 index.js:145 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new e (WAService.js:1) at u (WAService.js:1) at Object.t.returnAsFinalCloudSDKError (WAService.js:1) at Function.success (WAService.js:1) at WAService.js:1 at _e (WAService.js:1) at ht. (WAService.js:1) at ht.emit (WAService.js:1) at ii (WAService.js:1) at WAService.js:1

Bless-L commented 5 years ago

"打开微信开发者工具,选择目录为编译好的dist目录"——>将选择目录改为taro-demo。 你的小程序申请了云开发的话,就能在微信开发者工具里看见云开发的按钮。json数据的导入是在云开发工具里导入的

jackylee1 commented 5 years ago

那那些云函数呢?怎么处理?我要建立一个云开发启动模版吗?不然我怎么弄那些云函数

jackylee1 commented 5 years ago

哎,无语,真搞不懂。我如果填了我的appid,等下导入目录后又自动变了个 appid,如果用这个appid就没开通云开发功能

jackylee1 commented 5 years ago

Wed Dec 26 2018 18:15:36 GMT+0800 (CST) 接口调整 VM179:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能! console.warn @ VM179:1 createComponent @ index.js:3295 (anonymous) @ edit_box.js:170 require @ WAService.js:22 (anonymous) @ VM306:113 scriptLoaded @ appservice?t=1545819334037:2745 script.onload @ appservice?t=1545819334037:2757 VM179:1 TypeError: Cannot read property 'colorInfo' of undefined at Connect._createData (edit_box.js:107) at Object.createComponent (index.js:3293) at edit_box.js:170 at require (WAService.js:22) at :113:7 at HTMLScriptElement.scriptLoaded (appservice?t=1545819334037:2745) at HTMLScriptElement.script.onload (appservice?t=1545819334037:2757) console.warn @ VM179:1 createComponent @ index.js:3296 (anonymous) @ edit_box.js:170 require @ WAService.js:22 (anonymous) @ VM306:113 scriptLoaded @ appservice?t=1545819334037:2745 script.onload @ appservice?t=1545819334037:2757 redux-logger.js:163 action REQUEST_HOME @ 18:15:37.222 redux-logger.js:170 prev state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} redux-logger.js:172 action {type: "REQUEST_HOME", payload: null} redux-logger.js:176 next state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} appservice?t=1545819334037:2496 Wed Dec 26 2018 18:15:37 GMT+0800 (CST) 配置中关闭合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书检查 VM179:1 工具未校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书。 console.warn @ VM179:1 n @ appservice?t=1545819334037:2496 h @ appservice?t=1545819334037:2496 createRequestTask @ appservice?t=1545819334037:2496 invoke @ appservice?t=1545819334037:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 Ot @ WAService.js:7 e @ WAService.js:12 (anonymous) @ WAService.js:12 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 r @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 o @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 i @ WACloud.js:1 Promise resolved (async) c @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 r @ WACloud.js:1 (anonymous) @ WACloud.js:1 exportAPI.(anonymous function) @ WACloud.js:1 _callee$ @ home.js:82 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ home.js:54 (anonymous) @ home.js:54 (anonymous) @ home.js:54 (anonymous) @ home.js:130 (anonymous) @ index.js:11 onFetchIndexList @ index.js:285 triggerPropsFn @ index.js:3743 componentWillMount @ index.js:167 componentWillMount @ index.js:269 componentTrigger @ index.js:3249 updateComponent @ index.js:3467 initComponent @ index.js:3281 weappComponentConf.methods.onLoad @ index.js:3363 (anonymous) @ WAService.js:19 Yt @ WAService.js:19 nn @ WAService.js:19 on @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 Q.emit @ WAService.js:8 emit @ WAService.js:6 (anonymous) @ WAService.js:9 (anonymous) @ WAService.js:6 e @ appservice?t=1545819334037:2496 n.registerCallback.t @ appservice?t=1545819334037:2496 l.forEach.t @ appservice?t=1545819334037:2496 (anonymous) @ appservice?t=1545819334037:2496 s.onmessage @ appservice?t=1545819334037:2496 home.js:119 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new t (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:73631) at u (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74345) at Object.t.returnAsFinalCloudSDKError (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74526) at success (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:56559) at Function.function.a.(anonymous function) (http://127.0.0.1:31419/appservice/dev/WAService.js:7:6841) at Object.success (http://127.0.0.1:31419/appservice/dev/WAService.js:4:13377) at Q. (http://127.0.0.1:31419/appservice/dev/WAService.js:7:2427) at Q.emit (http://127.0.0.1:31419/appservice/dev/WAService.js:8:9515) at Function. (http://127.0.0.1:31419/appservice/dev/WAService.js:12:23919) at http://127.0.0.1:31419/appservice/dev/WAService.js:6:2179 index.js:145 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new t (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:73631) at u (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74345) at Object.t.returnAsFinalCloudSDKError (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74526) at success (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:56559) at Function.function.a.(anonymous function) (http://127.0.0.1:31419/appservice/dev/WAService.js:7:6841) at Object.success (http://127.0.0.1:31419/appservice/dev/WAService.js:4:13377) at Q. (http://127.0.0.1:31419/appservice/dev/WAService.js:7:2427) at Q.emit (http://127.0.0.1:31419/appservice/dev/WAService.js:8:9515) at Function. (http://127.0.0.1:31419/appservice/dev/WAService.js:12:23919) at http://127.0.0.1:31419/appservice/dev/WAService.js:6:2179 index.js:4026 Uncaught (in promise) {errMsg: "getStorage:fail data not found"}errMsg: "getStorage:fail data not found"proto__: Object obj.(anonymous function) @ index.js:4026 function.a.(anonymous function) @ WAService.js:7 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:6 function.setTimeout @ appservice?t=1545819334037:2496 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:4 setTimeout (async) setTimeout @ WAService.js:4 m @ appservice?t=1545819334037:2496 r.registerCallback.t @ appservice?t=1545819334037:2496 l.forEach.t @ appservice?t=1545819334037:2496 (anonymous) @ appservice?t=1545819334037:2496 s.onmessage @ appservice?t=1545819334037:2496

jackylee1 commented 5 years ago

Wed Dec 26 2018 18:24:43 GMT+0800 (CST) 接口调整 VM447:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM447:1 operateWXData @ appservice?t=1545819880333:2496 invoke @ appservice?t=1545819880333:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 ca @ WAService.js:9 Pd @ WAService.js:12 Nb.(anonymous function) @ WAService.js:14 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ wx.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ wx.js:147 (anonymous) @ wx.js:147 (anonymous) @ wx.js:147 getWxUserData @ wx.js:51 _callee$ @ app.js:101 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ app.js:27 (anonymous) @ app.js:27 (anonymous) @ app.js:27 componentWillMount @ app.js:117 onLaunch @ index.js:3848 t @ WAService.js:19 t @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 (anonymous) @ app.js:132 require @ WAService.js:22 (anonymous) @ VM574:1 scriptLoaded @ appservice?t=1545819880333:2745 script.onload @ appservice?t=1545819880333:2757 VM447:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能! console.warn @ VM447:1 createComponent @ index.js:3295 (anonymous) @ edit_box.js:170 require @ WAService.js:22 (anonymous) @ VM574:113 scriptLoaded @ appservice?t=1545819880333:2745 script.onload @ appservice?t=1545819880333:2757 VM447:1 TypeError: Cannot read property 'colorInfo' of undefined at Connect._createData (edit_box.js:107) at Object.createComponent (index.js:3293) at edit_box.js:170 at require (WAService.js:22) at :113:7 at HTMLScriptElement.scriptLoaded (appservice?t=1545819880333:2745) at HTMLScriptElement.script.onload (appservice?t=1545819880333:2757) console.warn @ VM447:1 createComponent @ index.js:3296 (anonymous) @ edit_box.js:170 require @ WAService.js:22 (anonymous) @ VM574:113 scriptLoaded @ appservice?t=1545819880333:2745 script.onload @ appservice?t=1545819880333:2757 redux-logger.js:163 action REQUEST_HOME @ 18:24:45.216 redux-logger.js:170 prev state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} redux-logger.js:172 action {type: "REQUEST_HOME", payload: null} redux-logger.js:176 next state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} appservice?t=1545819880333:2496 Wed Dec 26 2018 18:24:45 GMT+0800 (CST) 配置中关闭合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书检查 VM447:1 工具未校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书。 console.warn @ VM447:1 n @ appservice?t=1545819880333:2496 h @ appservice?t=1545819880333:2496 createRequestTask @ appservice?t=1545819880333:2496 invoke @ appservice?t=1545819880333:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 Ot @ WAService.js:7 e @ WAService.js:12 (anonymous) @ WAService.js:12 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 r @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 o @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 i @ WACloud.js:1 Promise resolved (async) c @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 r @ WACloud.js:1 (anonymous) @ WACloud.js:1 exportAPI.(anonymous function) @ WACloud.js:1 _callee$ @ home.js:82 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ home.js:54 (anonymous) @ home.js:54 (anonymous) @ home.js:54 (anonymous) @ home.js:130 (anonymous) @ index.js:11 onFetchIndexList @ index.js:285 triggerPropsFn @ index.js:3743 componentWillMount @ index.js:167 componentWillMount @ index.js:269 componentTrigger @ index.js:3249 updateComponent @ index.js:3467 initComponent @ index.js:3281 weappComponentConf.methods.onLoad @ index.js:3363 (anonymous) @ WAService.js:19 Yt @ WAService.js:19 nn @ WAService.js:19 on @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 Q.emit @ WAService.js:8 emit @ WAService.js:6 (anonymous) @ WAService.js:9 (anonymous) @ WAService.js:6 e @ appservice?t=1545819880333:2496 n.registerCallback.t @ appservice?t=1545819880333:2496 l.forEach.t @ appservice?t=1545819880333:2496 (anonymous) @ appservice?t=1545819880333:2496 s.onmessage @ appservice?t=1545819880333:2496 home.js:119 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new t (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:73631) at u (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74345) at Object.t.returnAsFinalCloudSDKError (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74526) at success (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:56559) at Function.function.a.(anonymous function) (http://127.0.0.1:31419/appservice/dev/WAService.js:7:6841) at Object.success (http://127.0.0.1:31419/appservice/dev/WAService.js:4:13377) at Q. (http://127.0.0.1:31419/appservice/dev/WAService.js:7:2427) at Q.emit (http://127.0.0.1:31419/appservice/dev/WAService.js:8:9515) at Function. (http://127.0.0.1:31419/appservice/dev/WAService.js:12:23919) at http://127.0.0.1:31419/appservice/dev/WAService.js:6:2179 index.js:145 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new t (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:73631) at u (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74345) at Object.t.returnAsFinalCloudSDKError (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74526) at success (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:56559) at Function.function.a.(anonymous function) (http://127.0.0.1:31419/appservice/dev/WAService.js:7:6841) at Object.success (http://127.0.0.1:31419/appservice/dev/WAService.js:4:13377) at Q. (http://127.0.0.1:31419/appservice/dev/WAService.js:7:2427) at Q.emit (http://127.0.0.1:31419/appservice/dev/WAService.js:8:9515) at Function. (http://127.0.0.1:31419/appservice/dev/WAService.js:12:23919) at http://127.0.0.1:31419/appservice/dev__/WAService.js:6:2179 index.js:4026 Uncaught (in promise) {errMsg: "getStorage:fail data not found"} obj.(anonymous function) @ index.js:4026 function.a.(anonymous function) @ WAService.js:7 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:6 function.setTimeout @ appservice?t=1545819880333:2496 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:4 setTimeout (async) setTimeout @ WAService.js:4 m @ appservice?t=1545819880333:2496 r.registerCallback.t @ appservice?t=1545819880333:2496 l.forEach.t @ appservice?t=1545819880333:2496 (anonymous) @ appservice?t=1545819880333:2496 s.onmessage @ appservice?t=1545819880333:2496

jackylee1 commented 5 years ago

2018-12-26 18 29 53

jackylee1 commented 5 years ago

还有把云环境名字我也改了还是不行,天啊,难道都没人试过吗

jackylee1 commented 5 years ago

Wed Dec 26 2018 19:36:02 GMT+0800 (CST) 接口调整 VM2140:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM2140:1 operateWXData @ appservice?t=1545824158900:2496 invoke @ appservice?t=1545824158900:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 ca @ WAService.js:9 Pd @ WAService.js:12 Nb.(anonymous function) @ WAService.js:14 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ wx.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ wx.js:147 (anonymous) @ wx.js:147 (anonymous) @ wx.js:147 getWxUserData @ wx.js:51 _callee$ @ app.js:103 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ app.js:27 (anonymous) @ app.js:27 (anonymous) @ app.js:27 componentWillMount @ app.js:119 onLaunch @ index.js:3848 t @ WAService.js:19 t @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 (anonymous) @ app.js:134 require @ WAService.js:22 (anonymous) @ VM2293:1 scriptLoaded @ appservice?t=1545824158900:2745 script.onload @ appservice?t=1545824158900:2757 VM2140:1 [Taro warn] 请给组件提供一个 defaultProps 以提高初次渲染性能! console.warn @ VM2140:1 createComponent @ index.js:3295 (anonymous) @ edit_box.js:170 require @ WAService.js:22 (anonymous) @ VM2293:113 scriptLoaded @ appservice?t=1545824158900:2745 script.onload @ appservice?t=1545824158900:2757 VM2140:1 TypeError: Cannot read property 'colorInfo' of undefined at Connect._createData (edit_box.js:107) at Object.createComponent (index.js:3293) at edit_box.js:170 at require (WAService.js:22) at :113:7 at HTMLScriptElement.scriptLoaded (appservice?t=1545824158900:2745) at HTMLScriptElement.script.onload (appservice?t=1545824158900:2757) console.warn @ VM2140:1 createComponent @ index.js:3296 (anonymous) @ edit_box.js:170 require @ WAService.js:22 (anonymous) @ VM2293:113 scriptLoaded @ appservice?t=1545824158900:2745 script.onload @ appservice?t=1545824158900:2757 redux-logger.js:163 action REQUEST_HOME @ 19:36:03.006 redux-logger.js:170 prev state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} redux-logger.js:172 action {type: "REQUEST_HOME", payload: null} redux-logger.js:176 next state {detail: {…}, home: {…}, shop: {…}, search: {…}, orderDetail: {…}, …} wx.js:38 {errMsg: "getUserInfo:fail scope unauthorized"} wx.js:39 微信登录或用户接口故障 appservice?t=1545824158900:2496 Wed Dec 26 2018 19:36:03 GMT+0800 (CST) 配置中关闭合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书检查 VM2140:1 工具未校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书。 console.warn @ VM2140:1 n @ appservice?t=1545824158900:2496 h @ appservice?t=1545824158900:2496 createRequestTask @ appservice?t=1545824158900:2496 invoke @ appservice?t=1545824158900:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 Ot @ WAService.js:7 e @ WAService.js:12 (anonymous) @ WAService.js:12 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 r @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 o @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 i @ WACloud.js:1 Promise resolved (async) c @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 (anonymous) @ WACloud.js:1 l @ WACloud.js:1 r @ WACloud.js:1 (anonymous) @ WACloud.js:1 exportAPI.(anonymous function) @ WACloud.js:1 _callee$ @ home.js:82 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ home.js:54 (anonymous) @ home.js:54 (anonymous) @ home.js:54 (anonymous) @ home.js:130 (anonymous) @ index.js:11 onFetchIndexList @ index.js:285 triggerPropsFn @ index.js:3743 componentWillMount @ index.js:167 componentWillMount @ index.js:269 componentTrigger @ index.js:3249 updateComponent @ index.js:3467 initComponent @ index.js:3281 weappComponentConf.methods.onLoad @ index.js:3363 (anonymous) @ WAService.js:19 Yt @ WAService.js:19 nn @ WAService.js:19 on @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 Q.emit @ WAService.js:8 emit @ WAService.js:6 (anonymous) @ WAService.js:9 (anonymous) @ WAService.js:6 e @ appservice?t=1545824158900:2496 n.registerCallback.t @ appservice?t=1545824158900:2496 l.forEach.t @ appservice?t=1545824158900:2496 (anonymous) @ appservice?t=1545824158900:2496 s.onmessage @ appservice?t=1545824158900:2496 home.js:119 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new t (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:73631) at u (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74345) at Object.t.returnAsFinalCloudSDKError (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:74526) at success (http://127.0.0.1:31419/appservice/alphadev/WACloud.js:1:56559) at Function.function.a.(anonymous function) (http://127.0.0.1:31419/appservice/dev/WAService.js:7:6841) at Object.success (http://127.0.0.1:31419/appservice/dev/WAService.js:4:13377) at Q. (http://127.0.0.1:31419/appservice/dev/WAService.js:7:2427) at Q.emit (http://127.0.0.1:31419/appservice/dev/WAService.js:8:9515) at Function. (http://127.0.0.1:31419/appservice/dev/WAService.js:12:23919) at http://127.0.0.1:31419/appservice/dev__/WAService.js:6:2179 appservice?t=1545824158900:2496 Wed Dec 26 2018 19:36:04 GMT+0800 (CST) 接口调整 VM2140:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM2140:1 operateWXData @ appservice?t=1545824158900:2496 invoke @ appservice?t=1545824158900:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 ca @ WAService.js:9 Pd @ WAService.js:12 Nb.(anonymous function) @ WAService.js:14 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ index.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getUserInfo @ index.js:51 _callee3$ @ index.js:117 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getIsAuth @ index.js:161 componentDidMount @ index.js:224 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:19 cn @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:10 n @ WAService.js:6 e @ appservice?t=1545824158900:2496 r.registerCallback.t @ appservice?t=1545824158900:2496 l.forEach.t @ appservice?t=1545824158900:2496 (anonymous) @ appservice?t=1545824158900:2496 s.onmessage @ appservice?t=1545824158900:2496 index.js:38 {errMsg: "getUserInfo:fail scope unauthorized"} index.js:39 微信登录或用户接口故障 index.js:121 Uncaught (in promise) TypeError: Cannot read property 'userInfo' of null at _callee3$ (http://127.0.0.1:31419/appservice/utils/index.js:121:29) at tryCatch (http://127.0.0.1:31419/appservice/npm/regenerator-runtime/runtime.js:62:40) at Generator.invoke [as _invoke] (http://127.0.0.1:31419/appservice/npm/regenerator-runtime/runtime.js:281:22) at Generator.prototype.(anonymous function) [as next] (http://127.0.0.1:31419/appservice/npm/regenerator-runtime/runtime.js:110:21) at step (http://127.0.0.1:31419/appservice/utils/index.js:173:191) at http://127.0.0.1:31419/appservice/utils/index.js:173:361 at _callee3$ @ index.js:121 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 Promise resolved (async) step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getIsAuth @ index.js:161 componentDidMount @ index.js:224 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:19 cn @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:10 n @ WAService.js:6 e @ appservice?t=1545824158900:2496 r.registerCallback.t @ appservice?t=1545824158900:2496 l.forEach.t @ appservice?t=1545824158900:2496 (anonymous) @ appservice?t=1545824158900:2496 s.onmessage @ appservice?t=1545824158900:2496 appservice?t=1545824158900:2496 Wed Dec 26 2018 19:36:04 GMT+0800 (CST) 接口调整 VM2140:1 获取 wx.getUserInfo 接口后续将不再出现授权弹窗,请注意升级 参考文档: https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&token=1650183953&docid=0000a26e1aca6012e896a517556c01 console.warn @ VM2140:1 operateWXData @ appservice?t=1545824158900:2496 invoke @ appservice?t=1545824158900:2496 invoke @ WAService.js:4 R @ WAService.js:6 j @ WAService.js:6 ca @ WAService.js:9 Pd @ WAService.js:12 Nb.(anonymous function) @ WAService.js:14 (anonymous) @ WAService.js:7 (anonymous) @ WAService.js:14 (anonymous) @ WAService.js:6 (anonymous) @ index.js:4036 taro.(anonymous function) @ index.js:4012 _callee$ @ index.js:28 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:173 (anonymous) @ index.js:173 (anonymous) @ index.js:173 getUserInfo @ index.js:51 _callee2$ @ index.js:183 tryCatch @ runtime.js:62 invoke @ runtime.js:281 prototype.(anonymous function) @ runtime.js:110 step @ index.js:33 (anonymous) @ index.js:33 (anonymous) @ index.js:33 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:4 setTimeout (async) setTimeout @ WAService.js:4 componentDidMount @ index.js:176 componentTrigger @ index.js:3249 weappComponentConf.methods.onReady @ index.js:3368 (anonymous) @ WAService.js:19 cn @ WAService.js:19 (anonymous) @ WAService.js:19 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:10 n @ WAService.js:6 e @ appservice?t=1545824158900:2496 r.registerCallback.t @ appservice?t=1545824158900:2496 l.forEach.t @ appservice?t=1545824158900:2496 (anonymous) @ appservice?t=1545824158900:2496 s.onmessage @ appservice?t=1545824158900:2496 index.js:38 {errMsg: "getUserInfo:fail scope unauthorized"} index.js:39 微信登录或用户接口故障 index.js:4026 Uncaught (in promise) {errMsg: "getStorage:fail data not found"} obj.(anonymous function) @ index.js:4026 function.a.(anonymous function) @ WAService.js:7 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:6 function.setTimeout @ appservice?t=1545824158900:2496 (anonymous) @ WAService.js:4 (anonymous) @ WAService.js:4 setTimeout (async) setTimeout @ WAService.js:4 m @ appservice?t=1545824158900:2496 r.registerCallback.t @ appservice?t=1545824158900:2496 l.forEach.t @ appservice?t=1545824158900:2496 (anonymous) @ appservice?t=1545824158900:2496 s.onmessage @ appservice?t=1545824158900:2496 index.js:145 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID , cloud function service error code -501005, error message Environment not found; at cloud.callFunction api; at new t (http://127.0.0.1:31419/appservice/__alphadev__/WACloud.js:1:73631) at u (http://127.0.0.1:31419/appservice/__alphadev__/WACloud.js:1:74345) at Object.t.returnAsFinalCloudSDKError (http://127.0.0.1:31419/appservice/__alphadev__/WACloud.js:1:74526) at success (http://127.0.0.1:31419/appservice/__alphadev__/WACloud.js:1:56559) at Function.function.a.(anonymous function) (http://127.0.0.1:31419/appservice/__dev__/WAService.js:7:6841) at Object.success (http://127.0.0.1:31419/appservice/__dev__/WAService.js:4:13377) at Q. (http://127.0.0.1:31419/appservice/__dev__/WAService.js:7:2427) at Q.emit (http://127.0.0.1:31419/appservice/__dev__/WAService.js:8:9515) at Function. (http://127.0.0.1:31419/appservice/__dev__/WAService.js:12:23919) at http://127.0.0.1:31419/appservice/__dev__/WAService.js:6:2179

jackylee1 commented 5 years ago

还有用户接口故障了

Bless-L commented 5 years ago

还有用户接口故障了

加下我微信吧,18825131679