码迷,mamicode.com
首页 > 其他好文 > 详细

1111111111111111

时间:2019-01-25 17:48:37      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:class   lob   字符   技术   white   node   black   opened   orm   

 

c.hash 得到64位 16进制的字符串

25336641ed5d2f00ede5bc7f82e981b5ba7b09d8ffba44709be5750597060c62
b3bd4b840fa297e36b56d3050a2682c9bfd2b41f7d55057dbbeb9f9e04a09c95

 

 __onConfirmBet: function(t) {
                var e = this;
                cc.log("onConfirmBet", t.detail);
                var n = this.globalNode.getComponent("global").platform;
                if (n) {
                    var i = Math.random() * (new Date).getTime()
                      , f = u.sha256(String(i), "hex")
                      , c = {};
                    c.base = f,
                    c.hash = u.sha256(a.from(f, "hex"), "hex"),
                    cc.sys.localStorage.setItem("30max_keys", JSON.stringify(c));
                    var l = Number(t.detail.value).toFixed(o.precision).toString() + " " + o.symbol
                      , h = this.localUser.referrer ? this.localUser.referrer : n.getReferrer()
                      , p = "mg:" + c.hash;
                    h && "undefined" != h && "null" != h && "" != h && (p += ":" + h);
                    var d = void 0;
                    o.tokens.forEach(function(t) {
                        t.symbol == o.symbol && (d = t.contract)
                    }),

 

 

技术分享图片
 a.colors = {
                bold: [1, 22],
                italic: [3, 23],
                underline: [4, 24],
                inverse: [7, 27],
                white: [37, 39],
                grey: [90, 39],
                black: [30, 39],
                blue: [34, 39],
                cyan: [36, 39],
                green: [32, 39],
                magenta: [35, 39],
                red: [31, 39],
                yellow: [33, 39]
            },
            
            
             __onConfirmBet: function(t) {
                var e = this;
                cc.log("onConfirmBet", t.detail);
                var n = this.globalNode.getComponent("global").platform;
                if (n) {
                    var i = Math.random() * (new Date).getTime()
                      , f = u.sha256(String(i), "hex")
                      , c = {};
                    c.base = f,
                    c.hash = u.sha256(a.from(f, "hex"), "hex"),
                    cc.sys.localStorage.setItem("30max_keys", JSON.stringify(c));
                    var l = Number(t.detail.value).toFixed(o.precision).toString() + " " + o.symbol
                      , h = this.localUser.referrer ? this.localUser.referrer : n.getReferrer()
                      , p = "mg:" + c.hash;
                    h && "undefined" != h && "null" != h && "" != h && (p += ":" + h);
                    var d = void 0;
                    o.tokens.forEach(function(t) {
                        t.symbol == o.symbol && (d = t.contract)
                    }),
全部js源码

 

1111111111111111

标签:class   lob   字符   技术   white   node   black   opened   orm   

原文地址:https://www.cnblogs.com/rogge7/p/10320326.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!