亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

VM538:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 7f1b94bc-4a21-11ea-b276-52540054168a, cloud function service error code -504002, error message wx is not defined; at cloud.callFunction api; at

VM538:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 7f1b94bc-4a21-11ea-b276-52540054168a, cloud function service error code -504002, error message wx is not defined; at cloud.callFunction api;?

? ? at new u (WAService.js:1)

? ? at d (WAService.js:1)

? ? at f (WAService.js:1)

? ? at Function.success (WAService.js:1)

? ? at WAService.js:1

? ? at C (WAService.js:1)

? ? at i.<anonymous> (WAService.js:1)

? ? at i.emit (WAService.js:1)

? ? at Rs (WAService.js:1)

? ? at WAService.js:1

console.error @ VM538:1

(anonymous) @ cloud.js? [sm]:88

Promise.catch (async)

batchDelete @ cloud.js? [sm]:83

r.safeCallback @ WAService.js:1

(anonymous) @ WAService.js:1

r @ WAService.js:1

(anonymous) @ WAService.js:1

(anonymous) @ WAService.js:1

n @ VM552 asdebug.js:1

(anonymous) @ VM552 asdebug.js:1

(anonymous) @ VM552 asdebug.js:1

_ws.onmessage @ VM552 asdebug.js:1


正在回答

3 回答

我的方法是重新上傳部署

0 回復 有任何疑惑可以回復我~

之前沒看前面同學發的問題?

0 回復 有任何疑惑可以回復我~

1、在云函數端對數據庫的初始化是不需要寫wx的,只需要:const db = cloud.database()?

2、在小程序端初始化數據庫需要寫wx,也就是const db = wx.cloud.database()


0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
輕松入門微信小程序與云開發
  • 參與學習       64632    人
  • 解答問題       1742    個

深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。

進入課程

VM538:1 Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 7f1b94bc-4a21-11ea-b276-52540054168a, cloud function service error code -504002, error message wx is not defined; at cloud.callFunction api; at

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號