Commit 7940ac6e by qiuren

feat: 更新

parent a5261a20
Showing with 16 additions and 3 deletions
......@@ -42,7 +42,8 @@
// 42: 振动
// 47: 直播奖励小窗抖动
// 48: base64格式图片保存到相册
// 48: 弹出用户行为规范弹窗
// 49: base64格式图片保存到相册
function webAppComm() {
this.data = null;
......@@ -690,11 +691,23 @@ webAppComm.prototype.liveShakes = function () {
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 48:弹出用户行为规范弹窗
webAppComm.prototype.userBehaviorSpecification = function (type) {
let obj = {
"cid": 48,
"reqCode": new Date().getTime(),
"data": {
'type': type
}
}
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
// 48: base64格式图片保存到相册
// 49: base64格式图片保存到相册
webAppComm.prototype.saveImgToAlbum = function (imgUrl) {
let obj = {
"cid": 48,
"cid": 49,
"data": {
'base64Url': imgUrl //照片地址
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment