本來想給小程序加個定時提醒功能,奈何沒這麽流量支持,所以只能做個記錄。
在微信公眾平臺-訂閱消息中獲取
wx.requestSubscribeMessage(Object object)
編寫 getOpenId 的雲函數
...
Talk is cheap,show me the code.
index.wxml
index.js
獲取openid雲函數-index.js
推送雲函數
定時發送需要用到下面的定時觸發器
定時觸發器
觸發器timer雲函數,Talk is cheap,show me the code.
index.js
config.json
在 timer雲函數 中右擊“上傳觸發器”
在 timer雲函數 中右擊“刪除觸發器”