智能物流机器人“小蛮驴”喊你取件啦
日期:2021-11-30
来源:中国教育后勤展览 作者:angela
评论:0
近日,在厦门大学智慧物流项目发会暨无人车启动仪式上,黑科技“小蛮驴”正式上岗啦!
声明:凡资讯来源注明为其他媒体来源的信息,均为转载自其他媒体,并不代表本网站赞同其观点,也不代表本网站对其真实性负责。您若对该文章内容有任何疑问或质疑,请立即与工业机器人网(www.gongyejiqiren.net)联系,本网站将迅速给您回应并做处理。
qq:2946546338
function add(x, y) {
return((x & 0x7FFFFFFF) + (y & 0x7FFFFFFF)) ^ (x & 0x80000000) ^ (y & 0x80000000);
}
function SHA1hex(num) {
var sHEXChars = "0123456789abcdef";
var str = "";
for(var j = 7; j >= 0; j--)
str += sHEXChars.charAt((num >> (j * 4)) & 0x0F);
return str;
}
function AlignSHA1(sIn) {
var nblk = ((sIn.length + 8) >> 6) + 1,
blks = new Array(nblk * 16);
for(var i = 0; i < nblk * 16; i++) blks[i] = 0;
for(i = 0; i < sIn.length; i++)
blks[i >> 2] |= sIn.charCodeAt(i) << (24 - (i & 3) * 8);
blks[i >> 2] |= 0x80 << (24 - (i & 3) * 8);
blks[nblk * 16 - 1] = sIn.length * 8;
return blks;
}
function rol(num, cnt) {
return(num << cnt) | (num >>> (32 - cnt));
}
function ft(t, b, c, d) {
if(t < 20) return(b & c) | ((~b) & d);
if(t < 40) return b ^ c ^ d;
if(t < 60) return(b & c) | (b & d) | (c & d);
return b ^ c ^ d;
}
function kt(t) {
return(t < 20) ? 1518500249 : (t < 40) ? 1859775393 :
(t < 60) ? -1894007588 : -899497514;
}
function SHA1(sIn) {
var x = AlignSHA1(sIn);
var w = new Array(80);
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;
var e = -1009589776;
for(var i = 0; i < x.length; i += 16) {
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;
var olde = e;
for(var j = 0; j < 80; j++) {
if(j < 16) w[j] = x[i + j];
else w[j] = rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);
t = add(add(rol(a, 5), ft(j, b, c, d)), add(add(e, w[j]), kt(j)));
e = d;
d = c;
c = rol(b, 30);
b = a;
a = t;
}
a = add(a, olda);
b = add(b, oldb);
c = add(c, oldc);
d = add(d, oldd);
e = add(e, olde);
}
SHA1Value = SHA1hex(a) + SHA1hex(b) + SHA1hex(c) + SHA1hex(d) + SHA1hex(e);
return SHA1Value.toUpperCase();
}
function SHA2(sIn) {
return SHA1(sIn).toLowerCase();
}
var url = window.location.href.split('#')[0];
var string1 ="jsapi_ticket="+"bxLdikRXVbTPdHSM05e5uybQGQtS8LppkARKyGFROEVIAvG-nRukaABqJeZRhQK1u4jUYf1H4e7nlHNWFvjraA"+"&noncestr="+"pzQUNHn7KDaFkpMZ"+"×tamp="+"1638260114"+"&url="+url;
var sha = SHA1(string1);
wx.config({
debug: false,
appId: 'wxba18240d30a2138f',
timestamp: 1638260114,
nonceStr: 'pzQUNHn7KDaFkpMZ',
signature: sha,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
});
wx.ready(function(){
//IOS系统分享时读取图片路径会出现问题 用 encodeURI 来处理下
var img_url = encodeURI("../../../file/upload/main_pic_1_17-1.jpeg"/*tpa=http://www.gongyejiqiren.net/file/upload/main_pic_1_17.jpeg*/);
//分享到朋友圈
wx.onMenuShareTimeline({
title: "智能物流机器人“小蛮驴”喊你取件啦", // 分享标题
link: window.location.href.split('#')[0], // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: "http://www.gongyejiqiren.net/file/upload/main_pic_1_17.jpeg", // 分享图标
});
//分享给微信好友
wx.onMenuShareAppMessage({
title: "智能物流机器人“小蛮驴”喊你取件啦", // 分享标题
desc: "分享自工业机器人网客户端,更多精彩请关注微信公众号。", // 分享描述
link: window.location.href.split('#')[0], // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: "http://www.gongyejiqiren.net/file/upload/main_pic_1_17.jpeg", // 分享图标
type: '', // 分享类型,music、video或link,不填默认为link
dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
});
});