play68.js 700 B

1234567891011121314151617181920212223
  1. function play68_init() {
  2. updateShare(0);
  3. }
  4. function play68_submitScore(score) {
  5. updateShareScore(score);
  6. Play68.shareFriend();
  7. // setTimeout( function() { Play68.shareFriend(); }, 1000 )
  8. }
  9. function updateShare(bestScore) {
  10. var descContent = "正月十五放花灯了,我的祝福满人间!";
  11. if(bestScore > 0) {
  12. Play68.setRankingScoreDesc(bestScore);
  13. shareTitle = "正月十五放花灯,我一共放飞了" + bestScore + "个祝福灯,天都亮了,你放了吗?";
  14. }
  15. else{
  16. shareTitle = "正月十五放花灯了,我的祝福满人间!";
  17. }
  18. appid = '';
  19. Play68.setShareInfo(shareTitle,descContent);
  20. }
  21. function updateShareScore(bestScore) {
  22. updateShare(bestScore);
  23. }