Duowan 5 роки тому
батько
коміт
cba7cc1deb
1 змінених файлів з 24 додано та 1 видалено
  1. 24 1
      assets/Script/Home/HomeSence.js

+ 24 - 1
assets/Script/Home/HomeSence.js

@@ -46,7 +46,30 @@ cc.Class({
 		if(CC_QQPLAY && window.GameStatusInfo) {
 			GameStatusInfo.startMs = ((new Date()).getTime()).toString()
 		}
-		
+        
+        // let path = 'GameSandBox://qrcode2.png' 
+        // BK.QRCode.makeQRCodeToFileSync({
+        //     path: path,
+        //     content: 'hello world',
+        //     config: {
+        //         width: 256,
+        //         height: 256
+        //     }
+        // });
+        
+        // new BK.Game({
+        //     onShare: function(app) {
+        //         var shareInfo = {
+        //             summary: '分享正文',
+        //             localPicPath: path,
+        //             picUrl: 'https://pub.dwstatic.com/wxgame/budingGame/share/shareImage.jpg',
+        //             gameName: '游戏名称'
+        //         }
+
+        //         return shareInfo
+        //     }
+        // })
+
 		// if (CC_QQPLAY) {
 		// 	this.QQLogin();
 		// 	this.initShare();