mypicture/mysql/9R8ChusahrJvLGmUvHWBgA

2438 lines
454 KiB
Plaintext
Raw Permalink Normal View History

2022-01-05 18:00:52 +08:00
<!-- 注意:这个文件是一个公共文件,被很多地方引用,改动需要注意其他类型页面是否有受影响 -->
<!DOCTYPE html>
<html class="
">
<head>
<meta name="wechat-enable-text-zoom-em" content="true">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="color-scheme" content="light dark">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
<link rel="shortcut icon" type="image/x-icon" href="//res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico">
<link rel="mask-icon" href="//res.wx.qq.com/a/wx_fed/assets/res/MjliNWVm.svg" color="#4C4C4C">
<link rel="apple-touch-icon-precomposed" href="//res.wx.qq.com/a/wx_fed/assets/res/OTE0YTAw.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="" />
<meta name="author" content="小林coding" />
<meta property="og:title" content="完蛋,公司被一条 update 语句干趴了!" />
<meta property="og:url" content="http://mp.weixin.qq.com/s?__biz=MzUxODAzNDg4NQ==&amp;mid=2247497844&amp;idx=1&amp;sn=256a70fb347ed23b0e116d7cc208d426&amp;chksm=f98dbcdecefa35c8c915aa7f791da6eacb7979756144c92a2a2309de87107aa0f04d93bfafd6#rd" />
<meta property="og:image" content="http://mmbiz.qpic.cn/mmbiz_jpg/J0g14CUwaZcprWcdNCqepBuhL2hhIpN7Wyd5Nz1c5tCKAO7fCe9qBQ7M6d8UG4Unu2mzIHZd3O7mpcw3OicLCNg/0?wx_fmt=jpeg" />
<meta property="og:description" content="" />
<meta property="og:site_name" content="微信公众平台" />
<meta property="og:type" content="article" />
<meta property="og:article:author" content="小林coding" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:image" content="http://mmbiz.qpic.cn/mmbiz_jpg/J0g14CUwaZcprWcdNCqepBuhL2hhIpN7Wyd5Nz1c5tCKAO7fCe9qBQ7M6d8UG4Unu2mzIHZd3O7mpcw3OicLCNg/0?wx_fmt=jpeg" />
<meta property="twitter:title" content="完蛋,公司被一条 update 语句干趴了!" />
<meta property="twitter:creator" content="小林coding" />
<meta property="twitter:site" content="微信公众平台" />
<meta property="twitter:description" content="" />
<script nonce="1756189750" type="text/javascript">
window.logs = {
pagetime: {}
};
var testRdmUrl = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/common/avatar_default55871f.svg';
if (testRdmUrl.indexOf('mp.weixin.qq.com') > 0) {
window.__allowLoadResFromMp = true;
window.__loadAllResFromMp = true;
document.documentElement.style.boxShadow = 'inset 0 0 15px green';
}
window.logs.pagetime['html_begin'] = (+new Date());
window.LANG= "zh_CN";
</script>
<title>
</title>
<!---请求录制 by gabyliu-->
<!--todo 这里要加cookie或actionType才加载 -->
<style>.radius_avatar{display:inline-block;background-color:#fff;padding:3px;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;overflow:hidden;vertical-align:middle}.radius_avatar img{display:block;width:100%;height:100%;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;background-color:#eee}.rich_media_inner{word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.rich_media_area_primary{padding:20px 16px 12px;padding:calc(20px + constant(safe-area-inset-top)) calc(16px + constant(safe-area-inset-right)) 12px calc(16px + constant(safe-area-inset-left));padding:calc(20px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left));background-color:#fafafa}.rich_media_area_primary.voice{padding-top:66px}.rich_media_area_primary .weui-loadmore_line{border-color:#d8d8d8}.rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{color:rgba(0,0,0,0.5);background-color:#fafafa}.rich_media_area_extra{padding:0 0 40px;padding:0 constant(safe-area-inset-right) calc(40px + constant(safe-area-inset-bottom)) constant(safe-area-inset-left);padding:0 env(safe-area-inset-right) calc(40px + env(safe-area-inset-bottom)) env(safe-area-inset-left)}.rich_media_extra{padding-top:32px}.mpda_bottom_container .rich_media_extra{padding-top:24px}.mpda_bottom_container{padding-left:8px;padding-right:8px}.mpda_bottom_container .rich_media_extra .mpad_more_list{right:-10px}.wx_wap_desktop_fontsize_1 .album_read_card,.wx_wap_desktop_fontsize_1 .like_comment_wrp,.wx_wap_desktop_fontsize_1 .like_comment_primary_wrp,.wx_wap_desktop_fontsize_1 .share_mod_context,.wx_wap_desktop_fontsize_1 .original_page,.wx_wap_desktop_fontsize_1 .weui-toast,.wx_wap_desktop_fontsize_1 .weui-dialog,.wx_wap_desktop_fontsize_1 .function_mod,.wx_wap_desktop_fontsize_1 .rich_media_extra,.wx_wap_desktop_fontsize_1 .rich_media_tool,.wx_wap_desktop_fontsize_1 .article_extend_area,.wx_wap_desktop_fontsize_1 .rich_media_wrp{zoom:.875}.wx_wap_desktop_fontsize_1 .rich_media_extra .weui-dialog,.wx_wap_desktop_fontsize_1 .rich_media_extra .weui-toast{zoom:1}.wx_wap_desktop_fontsize_1 .relate_mod_transition{zoom:1}.wx_wap_desktop_fontsize_2 .album_read_card,.wx_wap_desktop_fontsize_2 .like_comment_wrp,.wx_wap_desktop_fontsize_2 .like_comment_primary_wrp,.wx_wap_desktop_fontsize_2 .share_mod_context,.wx_wap_desktop_fontsize_2 .original_page,.wx_wap_desktop_fontsize_2 .weui-toast,.wx_wap_desktop_fontsize_2 .weui-dialog,.wx_wap_desktop_fontsize_2 .function_mod,.wx_wap_desktop_fontsize_2 .rich_media_extra,.wx_wap_desktop_fontsize_2 .like_comment_wrp,.wx_wap_desktop_fontsize_2 .rich_media_tool,.wx_wap_desktop_fontsize_2 .article_extend_area,.wx_wap_desktop_fontsize_2 .rich_media_wrp{zoom:1}.wx_wap_desktop_fontsize_2 .rich_media_extra .weui-dialog,.wx_wap_desktop_fontsize_2 .rich_media_extra .weui-toast{zoom:1}.wx_wap_desktop_fontsize_2 .relate_mod_transition{zoom:1}.wx_wap_desktop_fontsize_2 .relate_mod_transition .function_mod{zoom:1}.wx_wap_desktop_fontsize_3 .album_read_card,.wx_wap_desktop_fontsize_3 .like_comment_wrp,.wx_wap_desktop_fontsize_3 .like_comment_primary_wrp,.wx_wap_desktop_fontsize_3 .share_mod_context,.wx_wap_desktop_fontsize_3 .original_page,.wx_wap_desktop_fontsize_3 .weui-toast,.wx_wap_desktop_fontsize_3 .weui-dialog,.wx_wap_desktop_fontsize_3 .function_mod,.wx_wap_desktop_fontsize_3 .rich_media_extra,.wx_wap_desktop_fontsize_3 .like_comment_wrp,.wx_wap_desktop_fontsize_3 .rich_media_tool,.wx_wap_desktop_fontsize_3 .article_extend_area,.wx_wap_desktop_fontsize_3 .rich_media_wrp{zoom:1.25}.wx_wap_desktop_fontsize_3 .rich_media_extra .weui-dialog,.wx_wap_desktop_fontsize_3 .rich_media_extra .weui-toast{zoom:1}.wx_wap_desktop_fontsize_3 .relate_mod_transition{zoom:1.25}.wx_wap_desktop_fontsize_3 .relate_mod_transition .function_mod{zoom:1}.wx_wap_desktop_fontsize_4 .weui-toast,.wx_wap_desktop_fontsize_4 .weui-dialog{zoom:1.25}.wx_wap_desktop_fontsize_4 .album_read_card,.wx_wap_desktop_fontsize_4 .share_mod_context,.wx_wap_desktop_fontsize_4 .like_comment_wrp,.wx_wap
<style>
</style>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/pc55871f.css">
<![endif]-->
</head>
<body id="activity-detail" class="zh_CN wx_wap_page
wx_wap_desktop_fontsize_2 mm_appmsg
comment_feature
discuss_tab appmsg_skin_default appmsg_style_default">
<!-- <span style="color: red">currentVersion </span>
<div style="color:red;padding-left: 50px;">is IOS</div>
<span style="color: red">111</span>
<span style="color: red">222170009FF</span> -->
<script nonce="1756189750" type="text/javascript">
var biz = "MzUxODAzNDg4NQ==" || "";
var sn = "256a70fb347ed23b0e116d7cc208d426" || "" || "";
var mid = "2247497844" || "" || "";
var idx = "1" || "" || "";
window.__allowLoadResFromMp = true;
</script>
<script nonce="1756189750" type="text/javascript">
var page_begintime=+new Date,is_rumor="",norumor="";
1*is_rumor&&!(1*norumor)&&biz&&mid&&(document.referrer&&-1!=document.referrer.indexOf("mp.weixin.qq.com/mp/rumor")||(location.href="http://mp.weixin.qq.com/mp/rumor?action=info&__biz="+biz+"&mid="+mid+"&idx="+idx+"&sn="+sn+"#wechat_redirect"));
</script>
<script nonce="1756189750" type="text/javascript">
var MutationObserver=window.WebKitMutationObserver||window.MutationObserver||window.MozMutationObserver,isDangerSrc=function(t){
if(t){
var e=t.match(/http(?:s)?:\/\/([^\/]+?)(\/|$)/);
if(e&&!/qq\.com(\:8080)?$/.test(e[1])&&!/weishi\.com$/.test(e[1]))return!0;
}
return!1;
},ishttp=0==location.href.indexOf("http://");
-1==location.href.indexOf("safe=0")&&ishttp&&"function"==typeof MutationObserver&&"mp.weixin.qq.com"==location.host&&(window.__observer_data={
count:0,
exec_time:0,
list:[]
},window.__observer=new MutationObserver(function(t){
window.__observer_data.count++;
var e=new Date,r=[];
t.forEach(function(t){
for(var e=t.addedNodes,o=0;o<e.length;o++){
var n=e[o];
if("SCRIPT"===n.tagName){
var i=n.src;
isDangerSrc(i)&&(window.__observer_data.list.push(i),r.push(n)),!i&&window.__nonce_str&&n.getAttribute("nonce")!=window.__nonce_str&&(window.__observer_data.list.push("inlinescript_without_nonce"),
r.push(n));
}
}
});
for(var o=0;o<r.length;o++){
var n=r[o];
n.parentNode&&n.parentNode.removeChild(n);
}
window.__observer_data.exec_time+=new Date-e;
}),window.__observer.observe(document,{
subtree:!0,
childList:!0
})),function(){
if(-1==location.href.indexOf("safe=0")&&Math.random()<.01&&ishttp&&HTMLScriptElement.prototype.__lookupSetter__&&"undefined"!=typeof Object.defineProperty){
window.__danger_src={
xmlhttprequest:[],
script_src:[],
script_setAttribute:[]
};
var t="$"+Math.random();
HTMLScriptElement.prototype.__old_method_script_src=HTMLScriptElement.prototype.__lookupSetter__("src"),
HTMLScriptElement.prototype.__defineSetter__("src",function(t){
t&&isDangerSrc(t)&&window.__danger_src.script_src.push(t),this.__old_method_script_src(t);
});
var e="element_setAttribute"+t;
Object.defineProperty(Element.prototype,e,{
value:Element.prototype.setAttribute,
enumerable:!1
}),Element.prototype.setAttribute=function(t,r){
"SCRIPT"==this.tagName&&"src"==t&&isDangerSrc(r)&&window.__danger_src.script_setAttribute.push(r),
this[e](t,r);
};
}
}();
</script>
<link rel="dns-prefetch" href="//res.wx.qq.com">
<link rel="dns-prefetch" href="//mmbiz.qpic.cn">
<link rel="dns-prefetch" href="https://wxa.wxs.qq.com">
<link rel="shortcut icon" type="image/x-icon" href="//res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico">
<link rel="mask-icon" href="//res.wx.qq.com/a/wx_fed/assets/res/MjliNWVm.svg" color="#4C4C4C">
<link rel="apple-touch-icon-precomposed" href="//res.wx.qq.com/a/wx_fed/assets/res/OTE0YTAw.png">
<script nonce="1756189750" type="text/javascript">
String.prototype.html = function(encode) {
var replace =["&#39;", "'", "&quot;", '"', "&nbsp;", " ", "&gt;", ">", "&lt;", "<", "&yen;", "¥", "&amp;", "&"];
var replaceReverse = ["&", "&amp;", "¥", "&yen;", "<", "&lt;", ">", "&gt;", " ", "&nbsp;", '"', "&quot;", "'", "&#39;"];
var target;
if (encode) {
target = replaceReverse;
} else {
target = replace;
}
for (var i=0,str=this;i< target.length;i+= 2) {
str=str.replace(new RegExp(target[i],'g'),target[i+1]);
}
return str;
};
window.isInWeixinApp = function() {
return /MicroMessenger/.test(navigator.userAgent);
};
window.getQueryFromURL = function(url) {
url = url || 'http://qq.com/s?a=b#rd';
var tmp = url.split('?'),
query = (tmp[1] || "").split('#')[0].split('&'),
params = {};
for (var i=0; i<query.length; i++) {
var arg = query[i].split('=');
params[arg[0]] = arg[1];
}
if (params['pass_ticket']) {
params['pass_ticket'] = encodeURIComponent(params['pass_ticket'].html(false).html(false).replace(/\s/g,"+"));
}
return params;
};
(function() {
var params = getQueryFromURL(location.href);
window.uin = params['uin'] || "" || '';
window.key = params['key'] || "" || '';
window.wxtoken = params['wxtoken'] || '';
window.pass_ticket = params['pass_ticket'] || '';
window.appmsg_token = "";
})();
function wx_loaderror() {
if (location.pathname === '/bizmall/reward') {
new Image().src = '/mp/jsreport?key=96&content=reward_res_load_err&r=' + Math.random();
}
}
</script>
<script nonce="1756189750" type="text/javascript">
window.__moon_report_uin = "0";
window.no_moon_ls = 0;
</script>
<script nonce="1756189750" type="text/javascript">
var write_sceen_time = (+new Date());
var preview = "" * 1 || 0;
var currencyMap = {
'USD': '$',
'HKD': 'HK$',
'CAD': 'C$',
'AUD': 'A$',
'TWD': 'NT$',
'JPY': 'JPY¥',
'EUR': '€',
'SGD': 'S$',
'GBP': '£',
'NZD': 'NZ$',
'MYR': 'RM',
'KZT': '〒',
'KRW': '₩',
'THB': '฿',
'PHP': '₱',
'TRY': '₺',
'MXN': 'Mex$',
'CNY': '¥'
};
var can_use_wecoin = '1' * 1;
var wecoin_tips = '0' * 1;
var wecoin_amount = '0' * 1;
</script>
<div id="js_article" class="rich_media">
<div id="js_top_ad_area" class="top_banner"></div>
<div class="rich_media_inner">
<div id="page-content" class="rich_media_area_primary">
<div class="rich_media_area_primary_inner">
<div id="img-content" class="rich_media_wrp">
<h1 class="rich_media_title" id="activity-name">
完蛋,公司被一条 update 语句干趴了!
</h1>
<div id="meta_content" class="rich_media_meta_list">
<span id="copyright_logo" class="wx_tap_link js_wx_tap_highlight rich_media_meta icon_appmsg_tag appmsg_title_tag weui-wa-hotarea">原创</span>
<span class="rich_media_meta rich_media_meta_text">
小林coding
</span>
<span class="rich_media_meta rich_media_meta_nickname" id="profileBt">
<a href="javascript:void(0);" class="wx_tap_link js_wx_tap_highlight weui-wa-hotarea" id="js_name">
小林coding </a>
<div id="js_profile_qrcode" aria-hidden="true" class="profile_container" style="display:none;">
<div class="profile_inner">
<strong class="profile_nickname">小林coding</strong>
<img class="profile_avatar" id="js_profile_qrcode_img" src="" alt="">
<p class="profile_meta">
<label class="profile_meta_label">微信号</label>
<span class="profile_meta_value">CodingLin</span>
</p>
<p class="profile_meta">
<label class="profile_meta_label">功能介绍</label>
<span class="profile_meta_value">图解得了技术,谈吐得了烟火。</span>
</p>
</div>
<span class="profile_arrow_wrp" id="js_profile_arrow_wrp">
<i class="profile_arrow arrow_out"></i>
<i class="profile_arrow arrow_in"></i>
</span>
</div>
</span>
<em id="publish_time" class="rich_media_meta rich_media_meta_text"></em>
</div>
<div id="js_tags" class="article-tag__list single-tag__wrp js_single js_wx_tap_highlight wx_tap_card" data-len="1"
role="link"
aria-labelledby="js_article-tag-card__left js_a11y_comma js_article-tag-card__right"
>
<span aria-hidden="true" id="js_article-tag-card__left" class="article-tag-card__left">
<span class="article-tag-card__title">收录于话题</span>
<span class="article-tag__item-wrp no-active js_tag" data-url="https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUxODAzNDg4NQ==&amp;action=getalbum&amp;album_id=1955634887135199237#wechat_redirect" data-tag_id="" data-album_id="1955634887135199237" data-tag_source="4">
<span class="article-tag__item">#图解MySQL</span>
</span>
</span>
<span aria-hidden="true" id="js_article-tag-card__right" class="article-tag-card__right">11个</span>
</div>
<div class="rich_media_content " id="js_content" style="visibility: hidden;">
<section style="font-size: 16px;text-align: start;white-space: normal;text-size-adjust: auto;color: rgb(62, 62, 62);line-height: 1.8;word-spacing: 2px;letter-spacing: 2px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;" data-mpa-powered-by="yiban.io"><p style="font-size: inherit;color: inherit;line-height: inherit;margin: 5px 8px 1.7em;">大家好,我是小林。</p><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;">昨晚在群划水的时候,看到有位读者说了这么一件事。</section><p style="text-align: center;"><img class="rich_pages wxw-img" data-galleryid="" data-ratio="0.8453333333333334" data-s="300,640" data-src="https://mmbiz.qpic.cn/mmbiz_png/J0g14CUwaZcprWcdNCqepBuhL2hhIpN7WxcNvjQnrgMkvDiaFF1TkjZib9nn6x0Nz0uGThO8aTYfpmeWsic5aoxqg/640?wx_fmt=png" data-type="png" data-w="750" style="" /></p><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;">大概就是,在线上执行一条 update 语句修改数据库数据的时候where 条件没有带上索引,导致业务直接崩了,被老板教训了一波</section><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;"><span style="color: inherit;font-size: inherit;">这次我们就来看看:</span><br /></section><ul style="font-size: inherit;color: inherit;line-height: inherit;padding-left: 32px;margin-left: 8px;margin-right: 8px;" class="list-paddingleft-2"><li style="font-size: inherit;color: inherit;line-height: inherit;margin-bottom: 0.5em;"><p><span style="font-size: inherit;color: inherit;line-height: inherit;">为什么会发生这种的事故?</span></p></li><li style="font-size: inherit;color: inherit;line-height: inherit;margin-bottom: 0.5em;"><p><span style="font-size: inherit;color: inherit;line-height: inherit;">又该如何避免这种事故的发生?</span></p></li></ul><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;">说个前提,接下来说的案例都是基于 InnoDB 存储引擎,且事务的隔离级别是可重复读。</section><section style="font-size: inherit;color: inherit;line-height: inherit;text-align: center;margin: 5px 8px;"><span style="font-size: 18px;"><strong style="font-size: inherit;line-height: inherit;color: rgb(48, 79, 254);"><em style="font-size: inherit;line-height: inherit;color: rgb(197, 17, 98);">1&nbsp;</em></strong></span></section><section style="font-size: inherit;color: inherit;line-height: inherit;text-align: center;margin: 5px 8px;"><span style="font-size: 18px;"><strong style="font-size: inherit;line-height: inherit;color: rgb(48, 79, 254);"><em style="font-size: inherit;line-height: inherit;color: rgb(197, 17, 98);">为什么会发生这种的事故?</em></strong></span></section><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;">InnoDB 存储引擎的默认事务隔离级别是「可重复读」,但是在这个隔离级别下,在多个事务并发的时候,会出现幻读的问题,所谓的幻读是指在同一事务下,连续执行两次同样的查询语句,第二次的查询语句可能会返回之前不存在的行。</section><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;">因此 InnoDB 存储引擎自己实现了行锁,通过 next-key 锁(记录锁和间隙锁的组合)来锁住记录本身和记录之间的“间隙”,防止其他事务在这个记录之间插入新的记录,从而避免了幻读现象。</section><section style="font-size: inherit;color: inherit;line-height: inherit;margin: 1.7em 8px;">当我们执行 update 语句时实际上是会对记录加独占锁X 锁)的,如果其他事务对持有独占锁的记录进行修改时是会被阻塞的。另外,这个锁并不是执行完 update 语句就会释放的,而是会等事务结束时才会释放。</section><section style="font-size
</div>
<script nonce="1756189750" type="text/javascript">
var first_sceen__time = (+new Date());
if ("" == 1 && document.getElementById('js_content')) {
document.getElementById('js_content').addEventListener("selectstart",function(e){ e.preventDefault(); });
}
</script>
<div id="js_sponsor_ad_area"></div>
<div class="read-more__area" id="js_more_read_area" style="display:none;">
</div>
</div>
<div id="js_tags_preview_toast" class="article-tag__error-tips" style="display: none;">预览时标签不可点</div>
<div id="js_album_keep_read" class="appmsg_card_context album_read_card" style="display: none;">
<div role="button" class="album_read_hd weui-flex" id="js_album_directory">
<div class="album_read_source">收录于话题 <span class="weui-link wx_tap_link js_album_directory__name">#<span id="js_album_keep_read_title"></span></span></div>
<span class="weui-btn__word-wrp wx_tap_link js_album_directory__size">&nbsp;<span id="js_album_keep_read_size"></span><span class="weui-hidden_abs">个</span></span>
</div>
<div class="album_read_bd weui-flex">
<span role="button" class="album_read_nav_item album_read_nav_prev weui-flex__item wx_tap_link js_wx_tap_highlight" id="js_album_prev">
<span class="album_read_nav_inner">
<span class="album_read_nav_btn">上一篇</span>
<span class="album_read_nav_title">
<span class="album_read_nav_title_inner" id="js_album_keep_read_pre_title"></span>
</span>
</span>
</span>
<span role="button" class="album_read_nav_item album_read_nav_next weui-flex__item wx_tap_link js_wx_tap_highlight" id="js_album_next">
<span class="album_read_nav_inner">
<span class="album_read_nav_btn">下一篇</span>
<span class="album_read_nav_title">
<span class="album_read_nav_title_inner" id="js_album_keep_read_next_title"></span>
</span>
</span>
</span>
</div>
</div>
<div class="rich_media_tool" id="js_toobar3">
<div class="weui-flex">
<div class="weui-flex__item">
<div id="js_read_area3" role="option" class="media_tool_meta tips_global_primary meta_primary" style="display:none;">
<span id="readTxt">阅读</span>
<span id="readNum3"></span>
</div>
</div>
</div>
<div class="weui-flex sns_opr_area" id="js_bottom_opr_right">
<div class="weui-flex__item">
<span style="display: none;" class="media_tool_meta meta_primary meta_share js_media_tool_meta" id="js_bottom_share">
<button class="sns_opr_btn sns_share_btn weui-wa-hotarea js_wx_tap_highlight wx_tap_link" id="js_bottom_share_btn"><span class="sns_opr_gap">分享</span></button>
</span>
<span style="display: none;" class="media_tool_meta meta_primary meta_collect js_media_tool_meta" id="js_bottom_collect">
<button class="sns_opr_btn sns_collect_btn weui-wa-hotarea js_wx_tap_highlight wx_tap_link" id="js_bottom_collect_btn"><span class="sns_opr_gap">收藏</span></button>
</span>
</div>
<span style="display:none;" class="media_tool_meta meta_extra meta_praise js_media_tool_meta" id="like_old">
<button class="sns_opr_btn sns_praise_btn weui-wa-hotarea js_wx_tap_highlight wx_tap_link" id="js_bottom_zan_btn" aria-labelledby="js_a11y_zan_btn_txt likeNum_old"><span aria-hidden="true" class="sns_opr_gap" id="js_parise_wording">赞</span><span class="sns_opr_num sns_opr_gap" id="likeNum_old" style="display: none;"></span></button>
</span>
<span style="display:none;" class="media_tool_meta meta_extra meta_like js_media_tool_meta" id="like3">
<button class="sns_opr_btn sns_like_btn weui-wa-hotarea js_wx_tap_highlight wx_tap_link" id="js_like_btn" aria-labelledby="js_a11y_like_btn_txt likeNum3"><span class="sns_opr_gap" id="js_like_wording" aria-hidden="true">在看</span><span class="sns_opr_num sns_opr_gap" id="likeNum3"></span></button>
</span>
</div>
</div>
<div class="like_comment_wrp" id="js_like_comment" style="display: none;" role="dialog" tabindex="0">
<div class="like_comment_inner">
<div class="like_comment_hd" style="display:none" id="js_like_title"></div>
<div class="like_comment_bd">
<div class="like_comment_tips" id="js_comment_area">
<i class="weui-icon-success"></i><i class="icon-success-primary"></i>已同步到看一看<a href="javascript:;" class="like_comment_share_link" id="js_like_comment_share" tabindex="0">写下你的想法</a>
</div>
<div class="like_comment_extra_info" id="js_like_educate" style="display: none">
<p class="like_comment_extra_tips">
<span id="js_friend_like_area" style="display: none"></span>
<span id="js_friend_like_word">前往“发现”-“看一看”浏览“朋友在看”</span>
</p>
<p class="like_comment_pic_wrp">
<img class="like_comment_pic" alt="示意图" src="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/appmsg/pic_like_comment55871f.png">
</p>
<button class="weui-btn weui-btn_primary" id="js_go_wow">前往看一看</button>
</div>
</div>
</div>
</div>
<div style="display:none;" id="wow_close_inform" role="dialog" aria-modal="true">
<div class="weui-mask"></div>
<div class="weui-dialog">
<div class="weui-dialog__hd"><strong class="weui-dialog__title">看一看入口已关闭</strong></div>
<div class="weui-dialog__bd">
在“设置”-“通用”-“发现页管理”打开“看一看”入口 </div>
<div class="weui-dialog__ft" id="wow_close_ack">
<a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary">我知道了</a>
</div>
</div>
</div>
<div id="js_like_toast" style="display: none;">
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<i class="weui-icon-success-no-circle weui-icon_toast"></i>
<p class="weui-toast__content" id="js_toast_msg">已发送</p>
</div>
</div>
<div style="display: none;" id="js_comment_panel">
<div role="dialog" aria-modal="true" aria-hidden="true" tabindex="0" class="like_comment_primary_wrp editing" id="js_comment_wrp">
<div class="like_comment_primary_inner">
<div class="like_comment_primary_hd">
<div class="like_comment_primary_hd_side">
<button class="like_comment_primary_cancel" id="js_comment_cancel">
取消 <i class="weui-icon-close-thin"></i>
</button>
</div>
<h4 class="like_comment_primary_title"> 发送到看一看 </h4>
<div class="like_comment_primary_hd_side">
<button class="like_comment_primary_btn" id="js_comment_confirm" disabled="disabled">发送</button>
</div>
</div>
<div class="like_comment_primary_bd">
<div class="like_comment_media_title" id="js_panel_like_title">
完蛋,公司被一条 update 语句干趴了!
</div>
<div class="like_comment_textarea_wrp">
<textarea class="like_comment_textarea weui-textarea" placeholder="写下你的想法..." id="js_comment_text"></textarea>
</div>
</div>
<span class="like_comment_msg" role="option" id="js_like_comment_msg" style="visibility: hidden;">最多200字当前共<span id="js_like_current_cnt"></span>字</span>
</div>
</div>
<div class="like_comment_primary_mask" id="js_mask_2"></div>
</div>
<div id="js_loading" style="display: none;">
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<i class="weui-loading weui-icon_toast"></i>
<p class="weui-toast__content">发送中</p>
</div>
</div>
</div>
</div>
<div class="rich_media_area_primary sougou" id="sg_tj" style="display:none"></div>
<div class="rich_media_area_extra">
<div class="rich_media_area_extra_inner">
<div class="wx_follow_container" id="js_like_profile_container"></div>
<div class="related_container" id="js_related_container"></div>
<div class="mpda_bottom_container" id="js_bottom_ad_area"></div>
<div class="rich_media_extra rich_media_extra_discuss" id="js_cmt_container" style="display: none;">
<div class="discuss_mod" id="js_cmt_area" style="display: none;"></div>
</div>
<div id="js_iframetest" style="display:none;"></div>
<div id="page_bottom_area"></div>
</div>
</div>
<div id="js_pc_qr_code" class="qr_code_pc_outer" style="display:none;">
<div class="qr_code_pc_inner">
<div class="qr_code_pc">
<img id="js_pc_qr_code_img" class="qr_code_pc_img">
<p>微信扫一扫<br>关注该公众号</p>
</div>
</div>
</div>
</div>
</div>
<div class="comment_primary_emotion_panel_wrp" id="js_emotion_panel_pc" style="display: none">
<div class="comment_primary_emotion_panel">
<ul class="comment_primary_emotion_list_pc" id="js_emotion_list_pc">
</ul>
</div>
</div>
<div class="weui-dialog__wrp" id="js_alert_panel" style="display:none;">
<div class="weui-mask"></div>
<div class="weui-dialog">
<div class="weui-dialog__bd" id="js_alert_content"></div>
<div class="weui-dialog__ft">
<a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default" id="js_alert_confirm">知道了</a>
</div>
</div>
</div>
<script nonce="1756189750" type="text/javascript">
window.img_popup = 1;
</script>
<div id="js_pc_weapp_code" class="weui-desktop-popover weui-desktop-popover_pos-up-center weui-desktop-popover_img-text" style="display: none;">
<div class="weui-desktop-popover__content">
<div class="weui-desktop-popover__desc">
<img id="js_pc_weapp_code_img">
微信扫一扫<br>使用小程序<span id="js_pc_weapp_code_des"></span> </div>
</div>
</div>
<div id="js_minipro_dialog" role="dialog" aria-modal="true" tabindex="0" aria-labelledby="js_minipro_dialog_head" style="display:none;">
<div class="weui-mask"></div>
<div class="weui-dialog weui-dialog_link">
<div class="weui-dialog__hd">
<strong class="weui-dialog__title" id="js_minipro_dialog_head" tabindex="0"></strong>
</div>
<div class="weui-dialog__bd" id="js_minipro_dialog_body"></div>
<div class="weui-dialog__ft">
<a role="button" id="js_minipro_dialog_cancel" href="javascript:void(0);" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
<a role="button" id="js_minipro_dialog_ok" href="javascript:void(0);" class="weui-dialog__btn weui-dialog__btn_primary">允许</a>
</div>
</div>
</div>
<div id="js_link_dialog" role="dialog" aria-modal="true" tabindex="0" aria-labelledby="js_link_dialog_body" style="display:none;">
<div class="weui-mask"></div>
<div class="weui-dialog weui-dialog_link">
<div class="weui-dialog__hd">
<strong class="weui-dialog__title" id="js_link_dialog_head" tabindex="0"></strong>
</div>
<div class="weui-dialog__bd" id="js_link_dialog_body" tabindex="0"></div>
<div class="weui-dialog__ft">
<a role="button" id="js_link_dialog_cancel" href="javascript:void(0);" class="weui-dialog__btn weui-dialog__btn_default">取消</a>
<a role="button" id="js_link_dialog_ok" href="javascript:void(0);" class="weui-dialog__btn weui-dialog__btn_primary">允许</a>
</div>
</div>
</div>
<script nonce="1756189750" type="text/javascript">
var PAGE_MID='mmbizwap:appmsg/newindex.html';
</script>
<script nonce="1756189750" type="text/javascript">
window.logs.pagetime.page_begin = Date.now();
</script>
<script nonce="1756189750">
var __DEBUGINFO = {
debug_js : "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/debug/console55871f.js",
safe_js : "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_wap/safe/moonsafe55871f.js",
res_list: []
};
</script>
<script nonce="1756189750" type="text/javascript">
(function() {
var totalCount = 0,
finishCount = 0;
function _loadVConsolePlugin() {
window.vConsole = new window.VConsole();
while (window.vConsolePlugins.length > 0) {
var p = window.vConsolePlugins.shift();
window.vConsole.addPlugin(p);
}
if (!window.vConsole.isInited) {
window.vConsole._render();
window.vConsole._mockTap();
window.vConsole._bindEvent();
window.vConsole._autoRun();
}
}
function _addVConsole(uri, cb) {
totalCount++;
var node = document.createElement('SCRIPT');
node.type = 'text/javascript';
node.src = uri;
node.setAttribute('nonce', '1756189750');
if (cb) {
node.onload = cb;
}
document.getElementsByTagName('head')[0].appendChild(node);
}
if (
(document.cookie && document.cookie.indexOf('vconsole_open=1') > -1)
|| location.href.indexOf('vconsole=1') > -1
) {
window.vConsolePlugins = [];
_addVConsole('//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.2.2/vconsole.min55871f.js', function() {
_addVConsole('//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/plugin/vconsole-mpopt/1.0.1/vconsole-mpopt55871f.js', _loadVConsolePlugin);
});
}
try {
var adIframeUrl = localStorage.getItem('__WXLS_ad_iframe_url');
if (window === top) {
if (adIframeUrl) {
if (navigator.userAgent.indexOf('iPhone') > -1) {
var img = new Image();
img.src = adIframeUrl;
} else {
var link = document.createElement('link');
link.rel = 'prefetch';
link.href = adIframeUrl;
document.getElementsByTagName('head')[0].appendChild(link);
}
}
}
} catch (err) {
}
})();
</script>
<script nonce="1756189750" type="text/javascript">
function _typeof(e){
return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e;
}
!function(e){
if("object"===("undefined"==typeof module?"undefined":_typeof(module)))module.exports=e;else{
if(window.__second_open__)return;
var o="1641376381",n="1631358720",t="2021-09-11 19:12";
e(o,n,t,document.getElementById("publish_time"));
}
window.__setPubTime=e;
}(function(e,o,n,t){
var i=n||"";
t&&(t.innerText=i);
});
</script>
<script nonce="1756189750" type="text/javascript">
if (!window.console) window.console = { log: function() {} };
if (typeof getComputedStyle == 'undefined') {
if (document.body.currentStyle) {
window.getComputedStyle = function(el) {
return el.currentStyle;
}
} else {
window.getComputedStyle = {};
}
}
(function(){
window.__zoom = 1;
var ua = navigator.userAgent.toLowerCase();
var re = new RegExp("msie ([0-9]+[\.0-9]*)");
var version;
if (re.exec(ua) != null) {
version = parseInt(RegExp.$1);
}
var isIE = false;
if (typeof version != 'undefined' && version >= 6 && version <= 9) {
isIE = true;
}
var bodyWidth = '' * 1;
if (bodyWidth) {
var styles = getComputedStyle(document.getElementById('page-content'));
bodyWidth - parseFloat(styles.paddingLeft) - parseFloat(styles.paddingRight);
}
var getMaxWith=function(){
var container = document.getElementById('img-content');
var max_width = container.offsetWidth;
!max_width && bodyWidth && (max_width = bodyWidth);
var container_padding = 0;
var container_style = getComputedStyle(container);
container_padding = parseFloat(container_style.paddingLeft) + parseFloat(container_style.paddingRight);
max_width -= container_padding;
if (!max_width) {
max_width = window.innerWidth - 30;
}
return max_width;
};
var getParentWidth = function(dom){
var parent_width = 0;
var parent = dom.parentNode;
var outerWidth = 0;
while (true) {
if(!parent||parent.nodeType!=1) break;
var parent_style = getComputedStyle(parent);
if (!parent_style) break;
parent_width = parent.clientWidth - parseFloat(parent_style.paddingLeft) - parseFloat(parent_style.paddingRight) - outerWidth;
if (parent_width > 0) break;
outerWidth += parseFloat(parent_style.paddingLeft) + parseFloat(parent_style.paddingRight) + parseFloat(parent_style.marginLeft) + parseFloat(parent_style.marginRight) + parseFloat(parent_style.borderLeftWidth) + parseFloat(parent_style.borderRightWidth);
parent = parent.parentNode;
}
return parent_width;
}
var getOuterW=function(dom){
var style=getComputedStyle(dom),
w=0;
if(!!style){
w = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
}
return w;
};
var getOuterH =function(dom){
var style=getComputedStyle(dom),
h=0;
if(!!style){
h = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
}
return h;
};
var insertAfter = function(dom,afterDom){
var _p = afterDom.parentNode;
if(!_p){
return;
}
if(_p.lastChild === afterDom){
_p.appendChild(dom);
}else{
_p.insertBefore(dom,afterDom.nextSibling);
}
};
var getQuery = function(name,url){
var u = arguments[1] || window.location.search,
reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"),
r = u.substr(u.indexOf("\?")+1).match(reg);
return r!=null?r[2]:"";
};
function setImgSize(item, widthNum, widthUnit, ratio, breakParentWidth) {
setTimeout(function () {
var img_padding_border = getOuterW(item) || 0;
var img_padding_border_top_bottom = getOuterH(item) || 0;
if (widthNum > getParentWidth(item) && !breakParentWidth) {
widthNum = getParentWidth(item);
}
height = (widthNum - img_padding_border) * ratio + img_padding_border_top_bottom;
if (isIE || '0' === '1' || '' === '1') {
var url = item.getAttribute('data-src');
item.src = url;
} else {
if(parseFloat(widthNum, 10) > 40 && height > 40 && breakParentWidth) {
item.className += ' img_loading';
}
item.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==";
}
widthNum !== 'auto' && (item.style.cssText += ";width: " + widthNum + widthUnit + " !important;");
widthNum !== 'auto' && (item.style.cssText += ";height: " + height + widthUnit + " !important;");
}, 10);
}
(function(){
var images = document.getElementsByTagName('img');
var length = images.length;
var max_width = getMaxWith();
for (var i = 0; i < length; ++i) {
if (window.__second_open__ && images[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
var imageItem = images[i];
var src_ = imageItem.getAttribute('data-src');
var realSrc = imageItem.getAttribute('src');
if (!src_ || realSrc) continue;
var originWidth = imageItem.getAttribute('data-w');
var ratio_ = 1 * imageItem.getAttribute('data-ratio');
var height = 100;
if (ratio_ && ratio_ > 0) {
var parent_width = getParentWidth(imageItem) || max_width;
var initWidth = imageItem.style.width || imageItem.getAttribute('width') || originWidth || parent_width;
initWidth = parseFloat(initWidth, 10) > max_width ? max_width : initWidth;
if (initWidth) {
imageItem.setAttribute('_width', !isNaN(initWidth * 1) ? initWidth + 'px' : initWidth);
}
if (typeof initWidth === 'string' && initWidth.indexOf('%') !== -1) {
initWidth = parseFloat(initWidth.replace('%', ''), 10) / 100 * parent_width;
}
if (initWidth === 'auto') {
initWidth = originWidth;
}
var widthNum;
var widthUnit;
if (initWidth === 'auto') {
widthNum = 'auto';
} else {
var res = /^(\d+(?:\.\d+)?)([a-zA-Z%]+)?$/.exec(initWidth);
widthNum = res && res.length >= 2 ? res[1] : 0;
widthUnit = res && res.length >= 3 && res[2] ? res[2] : 'px';
}
setImgSize(imageItem, widthNum, widthUnit, ratio_, true);
(function (item, widthNumber, unit, ratio) {
setTimeout(function () {
setImgSize(item, widthNumber, unit, ratio, false);
});
})(imageItem, widthNum, widthUnit, ratio_);
} else {
imageItem.style.cssText += ";visibility: hidden !important;";
}
}
})();
window.__videoDefaultRatio=16/9;
window.__getVideoWh = function(dom){
var max_width = getMaxWith(),
width = max_width,
ratio_ = dom.getAttribute('data-ratio')*1,
arr = [4/3, 16/9],
ret = arr[0],
abs = Math.abs(ret - ratio_);
if (!ratio_) {
if (dom.getAttribute("data-mpvid")) {
ratio_ = 16/9;
} else {
ratio_ = 4/3;
}
} else {
for (var j = 1, jl = arr.length; j < jl; j++) {
var _abs = Math.abs(arr[j] - ratio_);
if (_abs < abs) {
abs = _abs;
ret = arr[j];
}
}
ratio_ = ret;
}
var parent_width = getParentWidth(dom)||max_width,
width = width > parent_width ? parent_width : width,
outerW = getOuterW(dom)||0,
outerH = getOuterH(dom)||0,
videoW = width - outerW,
videoH = videoW/ratio_,
speedDotH = 12,
height = videoH + outerH + speedDotH;
return {w:Math.ceil(width),h:Math.ceil(height),vh:videoH,vw:videoW,ratio:ratio_,sdh: speedDotH};
};
(function(){
var iframe = document.getElementsByTagName('iframe');
for (var i=0,il=iframe.length;i<il;i++) {
if (window.__second_open__ && iframe[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
var a = iframe[i];
var src_ = a.getAttribute('src')||a.getAttribute('data-src')||"";
if(!/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/.test(src_)
&& !/^http(s)*\:\/\/mp\.weixin\.qq\.com\/mp\/readtemplate\?t=pages\/video_player_tmpl/.test(src_)
){
continue;
}
var vid = getQuery("vid",src_);
if(!vid){
continue;
}
vid=vid.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");
a.removeAttribute('src');
a.style.display = "none";
var obj = window.__getVideoWh(a),
videoPlaceHolderSpan = document.createElement('span'),
videoPlayerIconSpan = document.createElement('span'),
mydiv = document.createElement('img');
videoPlaceHolderSpan.className = "js_img_loading db";
videoPlaceHolderSpan.setAttribute("data-vid", vid);
videoPlayerIconSpan.className = 'wx_video_context db';
videoPlayerIconSpan.style.display = 'none';
videoPlayerIconSpan.innerHTML = '<span class="wx_video_thumb_primary"></span><button class="wx_video_play_btn">播放</button><span class="wx_video_mask"></span>';
mydiv.className = "img_loading";
mydiv.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==";
videoPlaceHolderSpan.style.cssText = "width: " + obj.w + "px !important;";
mydiv.style.cssText += ";width: " + obj.w + "px";
videoPlaceHolderSpan.appendChild(videoPlayerIconSpan);
videoPlaceHolderSpan.appendChild(mydiv);
insertAfter(videoPlaceHolderSpan, a);
function ajax(obj){
var url = obj.url;
var xhr = new XMLHttpRequest();
var data = null;
if (typeof obj.data == "object"){
var d = obj.data;
data = [];
for(var k in d) {
if (d.hasOwnProperty(k)){
data.push(k + "=" + encodeURIComponent(d[k]));
}
}
data = data.join("&");
}else{
data = typeof obj.data == 'string' ? obj.data : null;
}
xhr.open('POST', url, true);
xhr.onreadystatechange = function(){
if( xhr.readyState == 4 ){
if( xhr.status >= 200 && xhr.status < 400 ){
obj.success && obj.success(xhr.responseText);
} else {
obj.error && obj.error(xhr);
}
obj.complete && obj.complete();
obj.complete = null;
}
};
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xhr.send(data);
}
var mid = "" || ""|| "2247497844";
var biz = ""||"MzUxODAzNDg4NQ==";
var sessionid = ""||"svr_2e84b6cd9d5";
var idx = "";
(function sendReq(parentNode, copyIframe, index, vid) {
ajax({
url: '/mp/videoplayer?vid=' + vid + '&mid=' + mid + '&idx=1&__biz=' + biz + '&sessionid=' + sessionid + '&f=json',
type: "GET",
dataType: 'json',
success: function (json) {
var ret = JSON.parse(json || '{}');
var ori = ret.ori_status;
var hit_biz_headimg = ret.hit_biz_headimg + '/64';
var hit_nickname = ret.hit_nickname;
var hit_username = ret.hit_username;
var selfUserName = "gh_fc46cf2353fc";
if (ori === 2 && selfUserName !== hit_username) {
var videoBar = document.createElement('div');
var videoBarHtml = '<div class="wx-edui-video_source_link js_wx_tap_highlight wx_tap_card" id="' + (hit_username + index) + '" data-hit-username="' + hit_username + '">';
videoBarHtml += '<div class="wx-edui-video_source_word">以下视频来源于</div>';
videoBarHtml += '<div class="wx-edui-video_account_info">';
videoBarHtml += '<div class="wx-edui-video_account_avatar" id="' + (hit_biz_headimg + index) + '" data-src="' + hit_biz_headimg + '"></div>';
videoBarHtml += '<div class="wx-edui-video_account_name">' + hit_nickname + '</div>';
videoBarHtml += '<i class="wx-edui-video_account_arrow"></i>';
videoBarHtml += '</div>';
videoBarHtml += '<div class="wx-edui-video_source_link__layer_mask"></div>';
videoBarHtml += '</div>';
videoBar.innerHTML = videoBarHtml;
var spanContainer = document.getElementById('js_mp_video_container_' + index);
if (spanContainer) {
spanContainer.parentNode.insertBefore(videoBar, spanContainer);
} else {
parentNode.insertBefore(videoBar, copyIframe);
}
var avatorEle = document.getElementById(hit_biz_headimg + index);
var avatorSrc = avatorEle.dataset.src;
console.log('avatorSrc' + avatorSrc);
if (ret.hit_biz_headimg) {
avatorEle.style.backgroundImage = 'url(' + avatorSrc + ')';
}
}
},
error: function (xhr) {
}
});
})(a.parentNode, a, i, vid);
a.style.cssText += ";width: " + obj.w + "px !important;";
a.setAttribute("width",obj.w);
if(window.__zoom!=1){
a.style.display = "block";
videoPlaceHolderSpan.style.display = "none";
a.setAttribute("_ratio",obj.ratio);
a.setAttribute("_vid",vid);
}else{
videoPlaceHolderSpan.style.cssText += "height: " + obj.h + "px !important;";
mydiv.style.cssText += "height: " + obj.h + "px !important;";
a.style.cssText += "height: " + obj.h + "px !important;";
a.setAttribute("height",obj.h);
}
a.setAttribute("data-vh",obj.vh);
a.setAttribute("data-vw",obj.vw);
if(a.getAttribute("data-mpvid")){
a.setAttribute("data-src",location.protocol+"//mp.weixin.qq.com/mp/readtemplate?t=pages/video_player_tmpl&auto=0&vid="+vid);
}else{
a.setAttribute("data-src",location.protocol+"//v.qq.com/iframe/player.html?vid="+ vid + "&width="+obj.vw+"&height="+obj.vh+"&auto=0");
}
}
})();
(function(){
if(window.__zoom!=1){
if (!window.__second_open__) {
document.getElementById('page-content').style.zoom = window.__zoom;
var a = document.getElementById('activity-name');
var b = document.getElementById('meta_content');
if(!!a){
a.style.zoom = 1/window.__zoom;
}
if(!!b){
b.style.zoom = 1/window.__zoom;
}
}
var images = document.getElementsByTagName('img');
for (var i = 0,il=images.length;i<il;i++) {
if (window.__second_open__ && images[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
images[i].style.zoom = 1/window.__zoom;
}
var iframe = document.getElementsByTagName('iframe');
for (var i = 0,il=iframe.length;i<il;i++) {
if (window.__second_open__ && iframe[i].getAttribute('__sec_open_place_holder__')) {
continue;
}
var a = iframe[i];
a.style.zoom = 1/window.__zoom;
var src_ = a.getAttribute('data-src')||"";
if(!/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/.test(src_)
&& !/^http(s)*\:\/\/mp\.weixin\.qq\.com\/mp\/readtemplate\?t=pages\/video_player_tmpl/.test(src_)
){
continue;
}
var ratio = a.getAttribute("_ratio");
var vid = a.getAttribute("_vid");
a.removeAttribute("_ratio");
a.removeAttribute("_vid");
var vw = a.offsetWidth - (getOuterW(a)||0);
var vh = vw/ratio;
var h = vh + (getOuterH(a)||0)
a.style.cssText += "height: " + h + "px !important;"
a.setAttribute("height",h);
if (/^http(s)*\:\/\/v\.qq\.com\/iframe\/(preview|player)\.html\?/.test(src_)) {
a.setAttribute("data-src", location.protocol + "//v.qq.com/iframe/player.html?vid=" + vid + "&width=" + vw + "&height=" + vh + "&auto=0");
}
a.style.display = "none";
var parent = a.parentNode;
if(!parent){
continue;
}
for(var j=0,jl=parent.children.length;j<jl;j++){
var child = parent.children[j];
if(child.className.indexOf("img_loading")>=0 && child.getAttribute("data-vid")==vid){
child.style.cssText += "height: " + h + "px !important;";
child.style.display = "";
}
}
}
}
})();
})();
</script>
<script nonce="1756189750" type="text/javascript">
!function(t){
var e={
defaultContentTpl:'<span class="js_img_loading db" style="width:#width#px !important;height:#height#px !important;text-indent: 0"><img style="width:#width#px !important;height:#height#px !important;" class="img_loading" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg=="></span>',
config:[{
querySelector:"redpacketcover",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return decodeURIComponent(t.node.getAttribute("data-coveruri")||"");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return.7854*t.parentWidth;
},
calH:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return this.calW({
parentWidth:t.parentWidth
})/.73346+27+37;
},
replaceContentCssText:"",
appendContentCssText:"display: inline-block;position: relative;",
outerContainerLeft:'<section style="display:block;font-size:0;text-align:center;margin:16px 0;">',
outerContainerRight:"</section>"
},{
querySelector:"qqmusic",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return(t.node.getAttribute("musicid")||"").replace(/^\s/,"").replace(/\s$/,"")+"_"+t.index;
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 88;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpvoice",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=decodeURIComponent(t.node.getAttribute("voice_encode_fileid")||"").replace(/^\s/,"").replace(/\s$/,"");
return e+"_"+t.index;
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 122;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mppoi",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return t.node.getAttribute("data-id")||"";
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 219;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpsearch",
genId:function(){
return decodeURIComponent("mpsearch");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 100;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpvideosnap",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-type")||"video";
return decodeURIComponent("live"===e?t.node.getAttribute("data-noticeid")||"":t.node.getAttribute("data-id")||"");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-type")||"video";
return"live"===e||"topic"===e?t.parentWidth:.665*t.parentWidth;
},
calH:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-desc")||"",n=t.node.getAttribute("data-type")||"video";
return"live"===n?113:"topic"===n?143:e?this.calW(t)+44+35+27:this.calW(t)+44+35;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px auto;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mp-wxaproduct",
genId:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return decodeURIComponent(t.node.getAttribute("data-wxaproduct-productid")||"");
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.node.getAttribute("data-wxaproduct-cardtype")||"";
return"mini"===e?124:466;
},
replaceContentCssText:"",
appendContentCssText:"margin:16px 0;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
},{
querySelector:"mpprofile",
genId:function(t){
return t.node.getAttribute("data-id")||"";
},
calW:function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
return 1*t.parentWidth;
},
calH:function(){
return 141;
},
replaceContentCssText:"",
appendContentCssText:"margin:28px 0 20px;diplay:block;",
outerContainerLeft:"",
outerContainerRight:""
}]
};
t(e);
}(function(){
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
if("function"==typeof document.querySelectorAll)for(var e={
maxWith:document.getElementById("img-content").getBoundingClientRect().width,
idAttr:"data-preloadingid"
},n=0,r=t.config.length;r>n;n++)for(var a=t.config[n],i=document.querySelectorAll(a.querySelector),o=0,u=i.length;u>o;o++){
var d=i[o],g=d.parentNode.getBoundingClientRect().width;
g=Math.min(g,e.maxWith);
var s=a.calW({
parentWidth:g,
node:d
}),c=a.calH({
parentWidth:g,
node:d
}),l=a.genId({
index:o,
node:d
}),p=t.defaultContentTpl.replace(/#height#/g,c).replace(/#width#/g,s),m=document.createElement("div");
if(m.innerHTML=p,a.replaceContentCssText){
var h=a.replaceContentCssText.replace(/#height#/g,c).replace(/#width#/g,s);
m.firstChild.style.cssText=h;
}else a.appendContentCssText&&(m.firstChild.style.cssText+=a.appendContentCssText);
var C=a.outerContainerLeft+m.innerHTML+a.outerContainerRight;
m.innerHTML=C,m.firstChild.setAttribute(e.idAttr,l),d.parentNode.insertBefore(m.firstChild,d.nextSibling);
}
});
</script>
<script nonce="1756189750" type="text/javascript">
var whiteList = 'rich_pages,blockquote_info,blockquote_biz,blockquote_other,blockquote_article,js_jump_icon,h5_image_link,js_banner_container,js_list_container,js_cover,js_tx_video_container,js_product_err_container,js_product_loop_content,js_product_container,img_loading,list-paddingleft-1,list-paddingleft-2,list-paddingleft-3,selectTdClass,noBorderTable,ue-table-interlace-color-single,ue-table-interlace-color-double,__bg_gif,weapp_text_link,weapp_image_link,js_img_loading,wx_video_context,db,wx_video_thumb_primary,wx_video_play_btn,wx_video_mask,qqmusic_area,tc,tips_global,unsupport_tips,qqmusic_wrp,appmsg_card_context,appmsg_card_active,wx_tap_card,js_wx_tap_highlight,wx_tap_link,qqmusic_bd,play_area,icon_qqmusic_switch,pic_qqmusic_default,qqmusic_thumb,access_area,qqmusic_songname,qqmusic_singername,qqmusic_source,js_audio_frame,share_audio_context,flex_context,pages_reset,share_audio_switch,icon_share_audio_switch,share_audio_info,flex_bd,share_audio_title,share_audio_tips,share_audio_progress_wrp,share_audio_progress,share_audio_progress_inner,share_audio_progress_buffer,share_audio_progress_loading,share_audio_progress_loading_inner,share_audio_progress_handle,share_audio_desc,share_audio_length_current,share_audio_length_total,video_iframe,vote_iframe,js_editor_vote_card,res_iframe,card_iframe,js_editor_card,weapp_display_element,js_weapp_display_element,weapp_card,app_context,weapp_card_bd,weapp_card_profile,radius_avatar,weapp_card_avatar,weapp_card_nickname,weapp_card_info,weapp_card_title,weapp_card_thumb_wrp,weapp_card_ft,weapp_card_logo,js_pay_btn,pay,pay__mask,wx_video_loading,js_redpacketcover,js_uneditable,js_uneditablemouseover,js_editor_qqmusic,js_editor_audio,ct_geography_loc_tip,js_poi_entry,subsc_context,subsc_btn,reset_btn,js_subsc_btn,icon_subsc'.split(',');
var qaClassPrefix = 'qa__';
var whiteListReg = [
new RegExp("^wxw"),
new RegExp("^weui"),
new RegExp("^appmsg"),
new RegExp("^audio"),
new RegExp("^music"),
new RegExp("^cps_inner"),
new RegExp("^bizsvr_"),
new RegExp("^code-snippet"),
new RegExp("^" + qaClassPrefix),
new RegExp("^wx-edui-"),
new RegExp("^wx_"),
new RegExp("^wx-"),
new RegExp('^js_darkmode__'),
new RegExp('^js_wechannel'),
];
</script>
<script nonce="1756189750" type="text/javascript">
function htmlDecode(str){
return str
.replace(/&#39;/g, '\'')
.replace(/<br\s*(\/)?\s*>/g, '\n')
.replace(/&nbsp;/g, ' ')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
.replace(/&quot;/g, '"')
.replace(/&amp;/g, '&')
.replace(/&nbsp;/g, ' ');
}
var uin = '';
var key = '';
var pass_ticket = '';
var new_appmsg = 1;
var item_show_type = "0";
var real_item_show_type = "0";
var can_see_complaint = "0";
var not_in_mm_css = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/not_in_mm55871f.css";
var article_improve_combo_css = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/appmsg_new/combo5acc2a.css";
var tid = "";
var aid = "";
var clientversion = "";
var appuin = ""||"MzUxODAzNDg4NQ==";
var voiceid = "";
var source = "";
var ascene = "";
var subscene = "";
var sessionid = ""||"svr_2e84b6cd9d5";
var abtest_cookie = "";
var scene = 75;
var itemidx = "";
var appmsg_token = "";
var _copyright_stat = "1";
var _ori_article_type = "科技_信息技术";
var is_follow = "";
var nickname = "小林coding";
var appmsg_type = "9";
var ct = "1631358720";
var user_name = "gh_fc46cf2353fc";
var fakeid = "";
var version = "";
var is_limit_user = "0";
var round_head_img = "http://mmbiz.qpic.cn/mmbiz_png/J0g14CUwaZfTwwjfpJhXgIrYMgtVcLhQQBVb02clZfKicbxaibSTNJqXe9Zu8ydiavZKJWJAIhKcnD9hBuKU92JZQ/0?wx_fmt=png";
var hd_head_img = "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5Kh6QZ0Kow3MJCcPpZ8cuUvVib6iazFvovfTgDekDkZLGA/0"||"";
var ori_head_img_url = "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5Kh6QZ0Kow3MJCcPpZ8cuUvVib6iazFvovfTgDekDkZLGA/132";
var msg_title = '完蛋,公司被一条 update 语句干趴了!'.html(false);
var msg_desc = htmlDecode("");
var msg_cdn_url = "http://mmbiz.qpic.cn/mmbiz_jpg/J0g14CUwaZcprWcdNCqepBuhL2hhIpN7Wyd5Nz1c5tCKAO7fCe9qBQ7M6d8UG4Unu2mzIHZd3O7mpcw3OicLCNg/0?wx_fmt=jpeg";
var cdn_url_1_1 = "https://mmbiz.qlogo.cn/mmbiz_jpg/J0g14CUwaZcprWcdNCqepBuhL2hhIpN7uyXO44jdMXiatoIyeXIoVX0Ficlm7YzYPAUyqTzFvvJw7uUORA13V7Kw/0?wx_fmt=jpeg";
var cdn_url_235_1 = "https://mmbiz.qlogo.cn/mmbiz_jpg/J0g14CUwaZcprWcdNCqepBuhL2hhIpN7Wyd5Nz1c5tCKAO7fCe9qBQ7M6d8UG4Unu2mzIHZd3O7mpcw3OicLCNg/0?wx_fmt=jpeg";
var msg_link = "http://mp.weixin.qq.com/s?__biz=MzUxODAzNDg4NQ==&amp;mid=2247497844&amp;idx=1&amp;sn=256a70fb347ed23b0e116d7cc208d426&amp;chksm=f98dbcdecefa35c8c915aa7f791da6eacb7979756144c92a2a2309de87107aa0f04d93bfafd6#rd";
var user_uin = ""*1;
var msg_source_url = '';
var img_format = 'jpeg';
var srcid = '';
var req_id = '0517J6S4k2yBzzsFrNxKXQQ0';
var networkType;
var appmsgid = "2247497844" || '' || '';
var comment_id = "2042888655471509504" || "2042888655471509504" * 1;
var comment_enabled = "" * 1;
var is_https_res = ("" * 1) && (location.protocol == "https:");
var msg_daily_idx = "1" || "";
var profileReportInfo = "" || "";
var devicetype = "";
var source_encode_biz = "";
var source_username = "";
var reprint_ticket = "";
var source_mid = "";
var source_idx = "";
var source_biz = "";
var author_id = "";
var optimizing_flag = "0" * 1;
var show_comment = "";
var __appmsgCgiData = {
wxa_product : ""*1,
wxa_cps : ""*1,
show_msg_voice: "0"*1,
can_use_page : ""*1,
is_wxg_stuff_uin : "0"*1,
card_pos : "",
copyright_stat : "1",
source_biz : "",
hd_head_img : "http://wx.qlogo.cn/mmhead/Q3auHgzwzM5Kh6QZ0Kow3MJCcPpZ8cuUvVib6iazFvovfTgDekDkZLGA/0"||(window.location.protocol+"//"+window.location.host + "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/appmsg/pic_rumor_link.2x55871f.jpg"),
has_red_packet_cover: "0" * 1 || 0,
minishopCardData: ""
};
var _empty_v = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/pages/voice/empty55871f.mp3";
var appmsg_album_info = (function () {
var curAlbumId = '';
var publicTagInfo = [
{
title: '图解MySQL',
size: '11' * 1,
link: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUxODAzNDg4NQ==&amp;action=getalbum&amp;album_id=1955634887135199237#wechat_redirect',
type: '0' * 1,
id: 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUxODAzNDg4NQ==&amp;action=getalbum&amp;album_id=1955634887135199237#wechat_redirect' ? 'https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzUxODAzNDg4NQ==&amp;action=getalbum&amp;album_id=1955634887135199237#wechat_redirect'.match(/[0-9]{8,}/)[0] : '',
continousReadOn: '1' * 1
},
];
for (var i = 0; i < publicTagInfo.length; i++) {
if (curAlbumId) {
if (curAlbumId === publicTagInfo[i].id) {
return publicTagInfo[i];
}
} else {
if (publicTagInfo[i].continousReadOn) {
return publicTagInfo[i];
}
}
}
return {};
})();
var copyright_stat = "1" * 1;
var hideSource = "" * 1;
var pay_fee = "" * 1;
var pay_timestamp = "";
var need_pay = "" * 1;
var need_report_cost = "0" * 1;
var use_tx_video_player = "0" * 1;
var appmsg_fe_filter = "contenteditable";
var friend_read_source = "" || "";
var friend_read_version = "" || "";
var friend_read_class_id = "" || "";
var is_only_read = "1" * 1;
var read_num = "" * 1;
var like_num = "" * 1;
var liked = "" == 'true' ? true : false;
var is_temp_url = "" ? 1 : 0;
var send_time = "";
var icon_emotion_switch = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch55871f.svg";
var icon_emotion_switch_active = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_active55871f.svg";
var icon_emotion_switch_primary = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_primary55871f.svg";
var icon_emotion_switch_active_primary = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/emotion/icon_emotion_switch_active_primary55871f.svg";
var icon_loading_white = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/common/icon_loading_white55871f.gif";
var icon_audio_unread = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/audio/icon_audio_unread55871f.png";
var icon_qqmusic_default = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/qqmusic/icon_qqmusic_default.2x55871f.png";
var icon_qqmusic_source = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/qqmusic/icon_qqmusic_source55871f.svg";
var icon_kugou_source = "//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/kugou/icon_kugou_source55871f.png";
var topic_default_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg/topic/pic_book_thumb.2x55871f.png';
var comment_edit_icon = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/appmsg_new/icon_edit55871f.png';
var comment_loading_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon/common/icon_loading_white55871f.gif';
var comment_c2c_not_support_img = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/appmsg/pic_discuss_more55871f.png';
var voice_in_appmsg = {
"1":"1"
};
var voiceList={};
voiceList={"voice_in_appmsg":[]}
var reprint_style = ''*1;
var wxa_img_alert = "" != 'false';
var more_read_type = '0'*1;
var weapp_sn_arr_json = "" || "";
var video_snap_json = "" || "";
var mp_profile = [
{
fakeid: 'MzUxODAzNDg4NQ==',
nickname: '小林coding',
alias: 'CodingLin',
round_head_img: 'http://mmbiz.qpic.cn/mmbiz_png/J0g14CUwaZfTwwjfpJhXgIrYMgtVcLhQQBVb02clZfKicbxaibSTNJqXe9Zu8ydiavZKJWJAIhKcnD9hBuKU92JZQ/0?wx_fmt=png',
signature: '图解得了技术,谈吐得了烟火。',
original_num: '179' * 1,
is_biz_ban: '0' * 1,
username: 'gh_fc46cf2353fc'
}
]
var ban_scene = "0" * 1;
var svr_time = "1641376381" * 1;
var is_transfer_msg = ""*1||0;
var malicious_title_reason_id = "0" * 1;
var malicious_content_type = "0" * 1;
var modify_time = "";
var isprofileblock = "0";
var jumpInfo = [
];
var hasRelatedArticleInfo = '0' * 1 || 0;
var relatedArticleFlag = '' * 1 || 0;
window.wxtoken = "777";
window.is_login = '' * 1;
window.__moon_initcallback = function(){
if(!!window.__initCatch){
window.__initCatch({
idkey : 27611+2,
startKey : 0,
limit : 128,
badjsId: 43,
reportOpt : {
uin : uin,
biz : biz,
mid : mid,
idx : idx,
sn : sn
},
extInfo : {
network_rate : 0.01,
badjs_rate: 0.1
}
});
}
}
var title ="小林coding";
var is_new_msg=true;
var is_wash = '' * 1;
var topbarEnable = false;
var enterid = "" * 1 || "" * 1 || parseInt(Date.now() / 1000);
var miniprogram_appid = "";
var defaultAvatarUrl = '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/common/avatar_default55871f.svg';
document.addEventListener('DOMContentLoaded', function () {
window.domCompleteTime = Date.now();
});
var hasRecommendMsg = 0;
;
var isPaySubscribe = '0' * 1;
var isPaid = '0' * 1;
var payShowIAPPrice = 1;
var payProductId = '' || '';
var previewPercent = '0' || '';
var payGiftsCount = '0' * 1 || 0;
var payFreeGift = '' * 1 || 0;
var is_finished_preview = 0;
var jump2pay = '' * 1;
var isFans;
var is_need_reward = (isPaySubscribe && !isPaid) ? 0 : "0" * 1;
var is_teenager = '' * 1 || 0;
var is_care_mode = '' * 1 || 0;
var anchor_tree_msg = '';
var colorScheme = '';
var iapPriceInfo = {
};
var productPayPackage = {
iap_price_info: iapPriceInfo
};
var isCartoonCopyright = '0' * 1;
var show_msg_voice = '' * 1;
var qnaCardData = '';
var exptype = '' || '';
var expsessionid = '' || '';
var goContentId = '';
var goReplyId = '';
var show_related_article = '' * 1;
var wwdistype = '';
window.cgiData = {
appImg: '//res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/pic/pages/video/pic_v.2x55871f.png',
}
</script>
<script nonce="1756189750" type="text/javascript">
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Darkmode",[],t):"object"==typeof exports?exports.Darkmode=t():e.Darkmode=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t,r){"use strict";var n=r(3),a=r(6),o=[].slice,i=["keyword","gray","hex"],s={};Object.keys(a).forEach((function(e){s[o.call(a[e].labels).sort().join("")]=e}));var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in i&&(t=null),t&&!(t in a))throw new Error("Unknown model: "+t);var r,u;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var h=n.get(e);if(null===h)throw new Error("Unable to parse color from string: "+e);this.model=h.model,u=a[this.model].channels,this.color=h.value.slice(0,u),this.valpha="number"==typeof h.value[u]?h.value[u]:1}else if(e.length){this.model=t||"rgb",u=a[this.model].channels;var f=o.call(e,0,u);this.color=g(f,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var d=Object.keys(e);"alpha"in e&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var b=d.sort().join("");if(!(b in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[b];var p=a[this.model].labels,y=[];for(r=0;r<p.length;r++)y.push(e[p[r]]);this.color=g(y)}if(l[this.model])for(u=a[this.model].channels,r=0;r<u;r++){var m=l[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function u(e,t,r){return(e=Array.isArray(e)?e:[e]).forEach((function(e){(l[e]||(l[e]=[]))[t]=r})),e=e[0],function(n){var a;return arguments.length?(r&&(n=r(n)),(a=this[e]()).color[t]=n,a):(a=this[e]().color[t],r&&(a=r(a)),a)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e){return Array.isArray(e)?e:[e]}function g(e,t){for(var r=0;r<t;r++)"number"!=typeof e[r]&&(e[r]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in n.to?this:this.rgb(),r=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return n.to[t.model](r)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),r=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=a[this.model].channels,r=a[this.model].labels,n=0;n<t;n++)e[r[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new c(this.color.map(function(e){return function(t){return f
</script>
<script nonce="1756189750" type="text/javascript">
if (!window.__second_open__) {
Darkmode.run(document.querySelectorAll('#js_content *'), {
mode: '',
defaultDarkBgColor: '',
error: function () {
(new Image()).src = 'https://mp.weixin.qq.com/mp/jsmonitor?idkey=125617_0_1';
},
begin: function (isSwitch) {
(new Image()).src = 'https://mp.weixin.qq.com/mp/jsmonitor?idkey=125617_2_1';
isSwitch && ((new Image()).src = 'https://mp.weixin.qq.com/mp/jsmonitor?idkey=125617_4_1');
}
});
document.getElementById('js_content').style.visibility = 'visible';
}
</script>
<script nonce="1756189750" type="text/javascript">
(function(_g){
_g.appmsg_like_type = "2" * 1 ? "2" * 1 : 1;
_g.clientversion = "";
_g.passparam = "";
if(!_g.msg_link) {
_g.msg_link = "http://mp.weixin.qq.com/s?__biz=MzUxODAzNDg4NQ==&amp;mid=2247497844&amp;idx=1&amp;sn=256a70fb347ed23b0e116d7cc208d426&amp;chksm=f98dbcdecefa35c8c915aa7f791da6eacb7979756144c92a2a2309de87107aa0f04d93bfafd6#rd";
}
_g.appmsg_type = "9";
_g.devicetype = "";
})(window);
</script>
<script nonce="1756189750">window.__moon_host = 'res.wx.qq.com';window.__moon_mainjs = 'appmsg/index.js';window.moon_map = {"pages_new/modules/toast/toast.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/toast/toast.html55871f.js","pages_new/modules/toast/toast.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/toast/toast55871f.js","new_video/plugin/util.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/new_video/plugin/util55871f.js","pages_new/common_share/video/player/player.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/player.html5ac6ca.js","page/pages/video_new.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/pages/video_new.css5acc2a.js","pages_new/common_share/video/player/plugins/base_legacy.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/base_legacy55871f.js","page/pages/video_mod/video_danmu.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/pages/video_mod/video_danmu.css5a6683.js","pages_new/common_share/video/player/plugins/danmu/danmu_util.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/danmu/danmu_util5a78a8.js","pages_new/common_share/video/player/plugins/danmu/input.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/danmu/input.html5a78a8.js","appmsg/emotion/emotion_pc.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion_pc.html5a6683.js","pages_new/modules/comment/list/item.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/comment/list/item.html5ac6ca.js","common/actionSheet.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/actionSheet582f2a.js","pages_new/modules/bottom_modal/bottom_modal.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/bottom_modal/bottom_modal.html5a49b9.js","page/pages/bottom_input_bar.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/page/pages/bottom_input_bar.css5a6683.js","appmsg/emotion/caret.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/caret55871f.js","pages_new/common_share/video/report.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/report57efc1.js","pages_new/common_share/video/utils/immersive_data.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/utils/immersive_data5ab687.js","common/safeAreaInsets.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/common/safeAreaInsets57efc1.js","pages_new/common_share/video/player/player.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/player5ac29c.js","pages_new/common_share/video/player/plugins/monitor/monitor.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/monitor/monitor5799e3.js","pages_new/common_share/video/player/plugins/danmu/danmu.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/danmu/danmu5ab6e6.js","pages_new/common_share/video/player/plugins/base.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/plugins/base55871f.js","pages_new/common_share/video/player/controller.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/common_share/video/player/controller.html59da4c.js","appmsg/emotion/emotion_pc.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/emotion_pc5a6683.js","appmsg/comment/comment_input/comment_input.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/comment/comment_input/comment_input.html582f2a.js","appmsg/emotion/selection.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/appmsg/emotion/selection55871f.js","widget/wx-widget/wx_emotion_panel.css":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/widget/wx-widget/wx_emotion_panel.css5a6683.js","pages_new/modules/comment/dialog/unsupport.html.js":"//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/pages_new/modules/comment/dialog/unsupport.
if(!window.__moonhasinit){
window.__moonhasinit=!0,window.__moonclientlog=[],window.__wxgspeeds&&(window.__wxgspeeds.moonloadedtime=+new Date),
"object"!=typeof JSON&&(window.JSON={
stringify:function(){
return"";
},
parse:function(){
return{};
}
});
var e=function(){
function e(e){
try{
var o;
/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?o="writeLog":/(Android)/i.test(navigator.userAgent)&&(o="log"),
o&&n(o,e);
}catch(t){
throw console.error(t),t;
}
}
function n(e,o){
var t,r,i={};
t=top!=window?top.window:window;
try{
r=t.WeixinJSBridge,i=t.document;
}catch(a){}
e&&r&&r.invoke?r.invoke(e,{
level:"info",
msg:"[WechatFe][moon]"+o
}):setTimeout(function(){
i.addEventListener?i.addEventListener("WeixinJSBridgeReady",function(){
n(e,o);
},!1):i.attachEvent&&(i.attachEvent("WeixinJSBridgeReady",function(){
n(e,o);
}),i.attachEvent("onWeixinJSBridgeReady",function(){
n(e,o);
}));
},0);
}
var t;
localStorage&&JSON.parse(localStorage.getItem("__WXLS__moonarg"))&&"fromls"==JSON.parse(localStorage.getItem("__WXLS__moonarg")).method&&(t=!0),
e(" moon init, moon_inline:"+window.__mooninline+", moonls:"+t),function(){
var e={},o={},n={};
e.COMBO_UNLOAD=0,e.COMBO_LOADING=1,e.COMBO_LOADED=2;
var t=function(e,n,t){
o[e]||(o[e]=t);
},r=window.alert;
window.__alertList=[],window.alert=function(e){
r(e),window.__alertList.push(e);
};
var i=function(e){
if(!e||!o[e])return null;
var t=o[e];
if("function"==typeof t&&!n[e]){
var a={},s={
exports:a
},c=t(i,a,s,r);
t=o[e]=c||s.exports,n[e]=!0;
}
if(".css"===e.substr(-4)){
var d=document.getElementById(e);
if(!d){
d=document.createElement("style"),d.id=e;
var _=/url\s*\(\s*\/(\"(?:[^\\\"\r\n\f]|\\[\s\S])*\"|'(?:[^\\'\n\r\f]|\\[\s\S])*'|[^)}]+)\s*\)/g,l=window.testenv_reshost||window.__moon_host||"res.wx.qq.com";
t=t.replace(_,"url(//"+l+"/$1)"),d.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(d);
}
}
return t;
};
e.combo_status=e.COMBO_UNLOAD,e.run=function(){
var o=e.run.info,n=o&&o[0],t=o&&o[1];
if(n&&e.combo_status==e.COMBO_LOADED){
var r=i(n);
t&&t(r);
}
},e.use=function(o,n){
window.__wxgspeeds&&(window.__wxgspeeds.seajs_use_time=+new Date),e.run.info=[o,n],
e.run();
},window.define=t,window.seajs=e;
}(),function(){
if(window.__nonce_str){
var e=document.createElement;
document.createElement=function(o){
var n=e.apply(this,arguments);
return"object"==typeof o&&(o=o.toString()),"string"==typeof o&&"script"==o.toLowerCase()&&n.setAttribute("nonce",window.__nonce_str),
n;
};
}
window.addEventListener&&window.__DEBUGINFO&&Math.random()<.01&&window.addEventListener("load",function(){
var e=document.createElement("script");
e.src=__DEBUGINFO.safe_js,e.type="text/javascript",e.async=!0;
var o=document.head||document.getElementsByTagName("head")[0];
o.appendChild(e);
});
}(),function(){
function n(e){
return"[object Array]"===Object.prototype.toString.call(e);
}
function t(e){
return"[object Object]"===Object.prototype.toString.call(e);
}
function r(e){
var n=e.stack+" "+e.toString()||"";
try{
if(window.testenv_reshost){
var t="http(s)?://"+window.testenv_reshost,r=new RegExp(t,"g");
n=n.replace(r,"");
}else n=n.replace(/http(s)?:\/\/res\.wx\.qq\.com/g,"");
for(var r=/\/([^.]+)\/js\/(\S+?)\.js(\,|:)?/g;r.test(n);)n=n.replace(r,function(e,o,n,t){
return n+t;
});
}catch(e){
n=e.stack?e.stack:"";
}
var i=[];
for(o in w)w.hasOwnProperty(o)&&i.push(o+":"+w[o]);
return i.push("STK:"+n.replace(/\n/g,"")),i.join("|");
}
function i(e,o,n){
if(!/^mp\.weixin\.qq\.com$/.test(location.hostname)){
var t=[];
n=n.replace(location.href,(location.origin||"")+(location.pathname||"")).replace("#wechat_redirect","").replace("#rd","").split("&");
for(var r=0,i=n.length;i>r;r++){
var a=n[r].split("=");
a[0]&&a[1]&&t.push(a[0]+"="+encodeURIComponent(a[1]));
}
var s=new window.Image;
return void(s.src=(o+t.join("&")).substr(0,1024));
}
var c;
if(window.ActiveXObject)try{
c=new ActiveXObject("Msxml2.XMLHTTP");
}catch(d){
try{
c=new ActiveXObject("Microsoft.XMLHTTP");
}catch(_){
c=!1;
}
}else window.XMLHttpRequest&&(c=new XMLHttpRequest);
c&&(c.open(e,o,!0),c.setRequestHeader("cache-control","no-cache"),c.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),
c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.send(n));
}
function a(e){
return function(o,n){
if("string"==typeof o)try{
o=new Function(o);
}catch(t){
throw t;
}
var r=[].slice.call(arguments,2),i=o;
return o=function(){
try{
return i.apply(this,r.length&&r||arguments);
}catch(e){
throw e.stack&&console&&console.error&&console.error("[TryCatch]"+e.stack),h&&window.__moon_report&&window.__moon_report([{
offset:O,
log:"timeout_error;host:"+location.host,
e:e
}]),e;
}
},e(o,n);
};
}
function s(e){
return function(o,n,t){
if("undefined"==typeof t)var t=!1;
var r=this,i=n||function(){};
return n=function(){
try{
return i.apply(r,arguments);
}catch(e){
throw e.stack&&console&&console.error&&console.error("[TryCatch]"+e.stack),h&&window.__moon_report&&window.__moon_report([{
offset:v,
log:"listener_error;type:"+o+";host:"+location.host,
e:e
}]),e;
}
},i.moon_lid=x,j[x]=n,x++,e.call(r,o,n,t);
};
}
function c(e){
return function(o,n,t){
if("undefined"==typeof t)var t=!1;
var r=this;
return n=j[n.moon_lid],e.call(r,o,n,t);
};
}
var d,_,l,w,m,u=/MicroMessenger/i.test(navigator.userAgent),f=/MPAPP/i.test(navigator.userAgent),p=window.define,h=121261,g=0,v=2,y=4,O=9,E=10;
if(window.__initCatch=function(e){
h=e.idkey,d=e.startKey||0,_=e.limit,l=e.badjsId,w=e.reportOpt||"",m=e.extInfo||{},
m.rate=m.rate||.5;
},window.__moon_report=function(e,o){
var a=!1,s="";
try{
s=top.location.href;
}catch(c){
a=!0;
}
var w=.5;
if(m&&m.rate&&(w=m.rate),o&&"number"==typeof o&&(w=o),!/mp\.weixin\.qq\.com/.test(location.href)&&!/payapp\.weixin\.qq\.com/.test(location.href)||Math.random()>w||!u&&!f||top!=window&&!a&&!/mp\.weixin\.qq\.com/.test(s),
t(e)&&(e=[e]),n(e)&&""!=h){
var p="",g=[],v=[],O=[],E=[];
"number"!=typeof _&&(_=1/0);
for(var j=0;j<e.length;j++){
var x=e[j]||{};
if(!(x.offset>_||"number"!=typeof x.offset||x.offset==y&&m&&m.network_rate&&Math.random()>=m.network_rate)){
var b=1/0==_?d:d+x.offset;
g[j]="[moon]"+h+"_"+b+";"+x.log+";"+r(x.e||{})||"",v[j]=b,O[j]=1;
}
}
for(var D=0;D<v.length;D++)E[D]=h+"_"+v[D]+"_"+O[D],p=p+"&log"+D+"="+g[D];
if(E.length>0){
i("POST",location.protocol+"//mp.weixin.qq.com/mp/jsmonitor?","idkey="+E.join(";")+"&r="+Math.random()+"&lc="+g.length+p);
var w=1;
if(m&&m.badjs_rate&&(w=m.badjs_rate),Math.random()<w){
if(p=p.replace(/uin\:(.)*\|biz\:(.)*\|mid\:(.)*\|idx\:(.)*\|sn\:(.)*\|/,""),l){
var B=new Image,S="https://badjs.weixinbridge.com/badjs?id="+l+"&level=4&from="+encodeURIComponent(location.host)+"&msg="+encodeURIComponent(p);
B.src=S.slice(0,1024);
}
if("undefined"!=typeof WX_BJ_REPORT&&WX_BJ_REPORT.BadJs)for(var j=0;j<e.length;j++){
var x=e[j]||{};
if(x.e)WX_BJ_REPORT.BadJs.onError(x.e,{
_info:x.log
});else{
var L=/[^:;]*/.exec(x.log)[0];
WX_BJ_REPORT.BadJs.report(L,x.log,{
mid:"mmbizwap:Monitor"
});
}
}
}else for(var j=0;j<e.length;j++){
var x=e[j]||{};
x.e&&(x.e.BADJS_EXCUTED=!0);
}
}
}
},window.setTimeout=a(window.setTimeout),window.setInterval=a(window.setInterval),
Math.random()<.01&&window.Document&&window.HTMLElement){
var j={},x=0;
Document.prototype.addEventListener=s(Document.prototype.addEventListener),Document.prototype.removeEventListener=c(Document.prototype.removeEventListener),
HTMLElement.prototype.addEventListener=s(HTMLElement.prototype.addEventListener),
HTMLElement.prototype.removeEventListener=c(HTMLElement.prototype.removeEventListener);
}
var b=window.navigator.userAgent;
if((/ip(hone|ad|od)/i.test(b)||/android/i.test(b))&&!/windows phone/i.test(b)&&window.localStorage&&window.localStorage.setItem){
var D=window.localStorage.setItem,B=0;
window.localStorage.setItem=function(e,o){
if(!(B>=10))try{
D.call(window.localStorage,e,o);
}catch(n){
n.stack&&console&&console.error&&console.error("[TryCatch]"+n.stack),window.__moon_report([{
offset:E,
log:"localstorage_error;"+n.toString(),
e:n
}]),B++,B>=3&&window.moon&&window.moon.clear&&moon.clear();
}
};
}
window.seajs&&p&&(window.define=function(){
for(var o,n=[],t=arguments&&arguments[0],i=0,a=arguments.length;a>i;i++){
var s=o=arguments[i];
"function"==typeof o&&(o=function(){
try{
return s.apply(this,arguments);
}catch(o){
throw"string"==typeof t&&console.error("[TryCatch][DefineeErr]id:"+t),o.stack&&console&&console.error&&console.error("[TryCatch]"+o.stack),
h&&window.__moon_report&&(WX_BJ_REPORT.BadJs.onError(o,{
mid:"mmbizwap:defineError"
}),window.__moon_report([{
offset:g,
log:"define_error;id:"+t+";",
e:o
}])),e(" [define_error]"+JSON.stringify(r(o))),o;
}
},o.toString=function(e){
return function(){
return e.toString();
};
}(arguments[i])),n.push(o);
}
return p.apply(this,n);
});
}(),function(o){
function n(e,o,n){
return window.__DEBUGINFO?(window.__DEBUGINFO.res_list||(window.__DEBUGINFO.res_list=[]),
window.__DEBUGINFO.res_list[e]?(window.__DEBUGINFO.res_list[e][o]=n,!0):!1):!1;
}
function t(e){
var o=new TextEncoder("utf-8").encode(e),n=crypto.subtle||crypto.webkitSubtle;
return n.digest("SHA-256",o).then(function(e){
return r(e);
});
}
function r(e){
for(var o=[],n=new DataView(e),t=0;t<n.byteLength;t+=4){
var r=n.getUint32(t),i=r.toString(16),a="00000000",s=(a+i).slice(-a.length);
o.push(s);
}
return o.join("");
}
function i(e,o,n){
if("object"==typeof e){
var t=Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,function(e,o){
return o;
});
if(n=n||e,"Array"==t){
for(var r=0,i=e.length;i>r;++r)if(o.call(n,e[r],r,e)===!1)return;
}else{
if("Object"!==t&&a!=e)throw"unsupport type";
if(a==e){
for(var r=e.length-1;r>=0;r--){
var s=a.key(r),c=a.getItem(s);
if(o.call(n,c,s,e)===!1)return;
}
return;
}
for(var r in e)if(e.hasOwnProperty(r)&&o.call(n,e[r],r,e)===!1)return;
}
}
}
var a=o.localStorage,s=document.head||document.getElementsByTagName("head")[0],c=1,d=11,_=12,l=13,w=window.__allowLoadResFromMp?1:2,m=window.__allowLoadResFromMp?1:0,u=w+m,f=window.testenv_reshost||window.__moon_host||"res.wx.qq.com";
window.__loadAllResFromMp&&(f="mp.weixin.qq.com",w=0,u=w+m);
var p=new RegExp("^(http(s)?:)?//"+f),h={
prefix:"__MOON__",
loaded:[],
unload:[],
clearSample:!0,
hit_num:0,
mod_num:0,
version:1003,
cacheData:{
js_mod_num:0,
js_hit_num:0,
js_not_hit_num:0,
js_expired_num:0,
css_mod_num:0,
css_hit_num:0,
css_not_hit_num:0,
css_expired_num:0
},
init:function(){
h.loaded=[],h.unload=[];
var e,n,r;
if(window.no_moon_ls&&(h.clearSample=!0),a){
var s="_moon_ver_key_",c=a.getItem(s);
c!=h.version&&(h.clear(),a.setItem(s,h.version));
}
if((-1!=location.search.indexOf("no_moon1=1")||-1!=location.search.indexOf("no_lshttps=1"))&&h.clear(),
a){
var d=1*a.getItem(h.prefix+"clean_time"),_=+new Date;
if(_-d>=1296e6){
h.clear();
try{
!!a&&a.setItem(h.prefix+"clean_time",+new Date);
}catch(l){}
}
}
i(moon_map,function(i,s){
if(n=h.prefix+s,r=!!i&&i.replace(p,""),e=!!a&&a.getItem(n),version=!!a&&(a.getItem(n+"_ver")||"").replace(p,""),
h.mod_num++,r&&-1!=r.indexOf(".css")?h.cacheData.css_mod_num++:r&&-1!=r.indexOf(".js")&&h.cacheData.js_mod_num++,
h.clearSample||!e||r!=version)h.unload.push(r.replace(p,"")),r&&-1!=r.indexOf(".css")?e?r!=version&&h.cacheData.css_expired_num++:h.cacheData.css_not_hit_num++:r&&-1!=r.indexOf(".js")&&(e?r!=version&&h.cacheData.js_expired_num++:h.cacheData.js_not_hit_num++);else{
if("https:"==location.protocol&&window.moon_hash_map&&window.moon_hash_map[s]&&window.crypto)try{
t(e).then(function(e){
window.moon_hash_map[s]!=e&&console.log(s);
});
}catch(c){}
try{
var d="//# sourceURL="+s+"\n//@ sourceURL="+s;
o.eval.call(o,'define("'+s+'",[],'+e+")"+d),h.hit_num++,r&&-1!=r.indexOf(".css")?h.cacheData.css_hit_num++:r&&-1!=r.indexOf(".js")&&h.cacheData.js_hit_num++;
}catch(c){
h.unload.push(r.replace(p,""));
}
}
}),h.load(h.genUrl());
},
genUrl:function(){
var e=h.unload;
if(!e||e.length<=0)return[];
if(window.__loadAllResFromMp)for(var o=0;o<h.unload.length;o++)0==h.unload[o].indexOf("/mmbizwap/")&&(h.unload[o]="/mp/"+h.unload[o].substr(10));
var n,t,r="",i=[],a={},s=-1!=location.search.indexOf("no_moon2=1"),c="//"+f;
-1!=location.href.indexOf("moon_debug2=1")&&(c="//mp.weixin.qq.com");
for(var d=0,_=e.length;_>d;++d){
/^\/(.*?)\//.test(e[d]);
var l=/^\/(.*?)\//.exec(e[d]);
l.length<2||!l[1]||(t=l[1],r=a[t],r?(n=r+","+e[d],n.length>1e3||s?(i.push(r+"?v="+h.version),
r=location.protocol+c+e[d],a[t]=r):(r=n,a[t]=r)):(r=location.protocol+c+e[d],a[t]=r));
}
for(var w in a)a.hasOwnProperty(w)&&i.push(a[w]);
return i;
},
load:function(e){
if(window.__wxgspeeds&&(window.__wxgspeeds.mod_num=h.mod_num,window.__wxgspeeds.hit_num=h.hit_num),
!e||e.length<=0)return seajs.combo_status=seajs.COMBO_LOADED,seajs.run(),console.debug&&console.debug("[moon] load js complete, all in cache, cost time : 0ms, total count : "+h.mod_num+", hit num: "+h.hit_num),
void window.__moonclientlog.push("[moon] load js complete, all in cache, cost time : 0ms, total count : "+h.mod_num+", hit num: "+h.hit_num);
seajs.combo_status=seajs.COMBO_LOADING;
var o=0,n=+new Date;
window.__wxgspeeds&&(window.__wxgspeeds.combo_times=[],window.__wxgspeeds.combo_times.push(n)),
i(e,function(t){
h.request(t,u,function(){
if(window.__wxgspeeds&&window.__wxgspeeds.combo_times.push(+new Date),o++,o==e.length){
var t=+new Date-n;
window.__wxgspeeds&&(window.__wxgspeeds.mod_downloadtime=t),seajs.combo_status=seajs.COMBO_LOADED,
seajs.run(),console.debug&&console.debug("[moon] load js complete, url num : "+e.length+", total mod count : "+h.mod_num+", hit num: "+h.hit_num+", use time : "+t+"ms"),
window.__moonclientlog.push("[moon] load js complete, url num : "+e.length+", total mod count : "+h.mod_num+", hit num: "+h.hit_num+", use time : "+t+"ms");
}
});
});
},
request:function(o,t,r){
if(o){
t=t||0,o.indexOf("mp.weixin.qq.com")>-1&&((new Image).src=location.protocol+"//mp.weixin.qq.com/mp/jsmonitor?idkey=27613_32_1&r="+Math.random(),
window.__moon_report([{
offset:_,
log:"load_script_from_mp: "+o
}],1));
var i=-1;
window.__DEBUGINFO&&(__DEBUGINFO.res_list||(__DEBUGINFO.res_list=[]),__DEBUGINFO.res_list.push({
type:"js",
status:"pendding",
start:+new Date,
end:0,
url:o
}),i=__DEBUGINFO.res_list.length-1),-1!=location.search.indexOf("no_lshttps=1")&&(o=o.replace("http://","https://"));
var a=document.createElement("script");
a.src=o,a.type="text/javascript",a.async=!0,a.down_time=+new Date,a.onerror=function(s){
n(i,"status","error"),n(i,"end",+new Date);
var _=new Error(s);
if(t>=0)if(m>t){
var w=o.replace("res.wx.qq.com","mp.weixin.qq.com");
h.request(w,t,r);
}else h.request(o,t,r);else window.__moon_report&&(window.__moon_report([{
offset:c,
log:"load_script_error: "+o,
e:_
}],1),window.WX_BJ_REPORT.BadJs.report("load_script_error",o,{
mid:"mmbizwap:Monitor",
_info:_
}));
if(t==m-1&&window.__moon_report([{
offset:d,
log:"load_script_error: "+o,
e:_
}],1),-1==t){
var u="ua: "+window.navigator.userAgent+", time="+(+new Date-a.down_time)+", load_script_error -1 : "+o;
window.__moon_report([{
offset:l,
log:u
}],1);
}
window.__moonclientlog.push("moon load js error : "+o+", error -> "+_.toString()),
e("moon_request_error url:"+o);
},"undefined"!=typeof moon_crossorigin&&moon_crossorigin&&a.setAttribute("crossorigin",!0),
a.onload=a.onreadystatechange=function(){
n(i,"status","loaded"),n(i,"end",+new Date),!a||a.readyState&&!/loaded|complete/.test(a.readyState)||(n(i,"status","200"),
a.onload=a.onreadystatechange=null,"function"==typeof r&&r());
},t--,s.appendChild(a),e("moon_request url:"+o+" retry:"+t);
}
},
setItem:function(e,o){
!!a&&a.setItem(e,o);
},
clear:function(){
a&&(i(a,function(e,o){
~o.indexOf(h.prefix)&&a.removeItem(o);
}),console.debug&&console.debug("[moon] clear"));
},
idkeyReport:function(e,o,n){
n=n||1;
var t=e+"_"+o+"_"+n;
(new Image).src="/mp/jsmonitor?idkey="+t+"&r="+Math.random();
}
};
seajs&&seajs.use&&"string"==typeof window.__moon_mainjs&&seajs.use(window.__moon_mainjs),
window.moon=h;
}(window),function(){
try{
Math.random()<1;
}catch(e){}
}(),window.moon.init();
};
e(),!!window.__moon_initcallback&&window.__moon_initcallback(),window.__wxgspeeds&&(window.__wxgspeeds.moonendtime=+new Date);
}
}
var WX_BJ_REPORT=window.WX_BJ_REPORT||{};
!function(e){
function o(e,o,n,t,r,i){
return{
name:e||"",
message:o||"",
file:n||"",
line:t||"",
col:r||"",
stack:i&&i.stack||""
};
}
function n(e){
var o=t(e);
return{
name:e.name,
key:e.message,
msg:e.message,
stack:o.info,
file:o.file,
line:o.line,
col:o.col,
client_version:"",
_info:e._info
};
}
function t(o){
o._info=o._info||"";
var n=o.stack||"",t={
info:n,
file:o.file||"",
line:o.line||"",
col:o.col||""
};
if(""==t.file){
var r=n.split(/\bat\b/);
if(r&&r[1]){
var i=/(https?:\/\/[^\n]+)\:(\d+)\:(\d+)/.exec(r[1]);
i&&(i[1]&&i[1]!=t.file&&(t.file&&(o._info+=" [file: "+t.file+" ]"),t.file=i[1]),
i[2]&&i[2]!=t.line&&(t.line&&(o._info+=" [line: "+t.line+" ]"),t.line=i[2]),i[3]&&i[3]!=t.col&&(t.col&&(o._info+=" [col: "+t.col+" ]"),
t.col=i[3]));
}
}
return t&&t.file&&t.file.length>0&&(t.info=t.info.replace(new RegExp(t.file.split("?")[0],"gi"),"__FILE__")),
e.BadJs.ignorePath&&(t.info=t.info.replace(/http(s)?\:[^:\n]*\//gi,"").replace(/\n/gi,"")),
t;
}
if(!e.BadJs){
var r="BadjsWindowError",i=function(e,o){
for(var n in o)e[n]=o[n];
return e;
};
return e.BadJs={
uin:0,
mid:"",
view:"wap",
_cache:{},
_info:{},
_hookCallback:null,
ignorePath:!0,
"throw":function(e,o){
throw this.onError(e,o),e;
},
onError:function(o,t){
try{
if(1==o.BADJS_EXCUTED)return;
o.BADJS_EXCUTED=!0;
var r=n(o);
if(r.uin=this.uin,r.mid=this.mid,r.view=this.view,r.cmdb_module="mmbizwap",t&&(r=i(r,t)),
r.cid&&(r.key="["+r.cid+"]:"+r.key),r._info&&(r.msg+="[object Object]"==Object.prototype.toString.call(r._info)?" || info:"+JSON.stringify(r._info):"[object String]"==Object.prototype.toString.call(r._info)?" || info:"+r._info:" || info:"+r._info),
"function"==typeof this._hookCallback&&this._hookCallback(r)===!1)return;
return this._send(r),e.BadJs;
}catch(o){
console.error(o);
}
},
winErr:function(n){
n.error&&n.error.BADJS_EXCUTED||e.BadJs.onError("unhandledrejection"===n.type?o(n.type,n.reason,"","","",n.reason):o(r,n.message,n.filename,n.lineno,n.colno,n.error));
},
init:function(o,n,t){
return this.uin=o||this.uin,this.mid=n||this.mid,this.view=t||this.view,e.BadJs;
},
hook:function(o){
return this._hookCallback=o,e.BadJs;
},
_send:function(o){
if(!o.mid){
if("undefined"==typeof window.PAGE_MID||!window.PAGE_MID)return;
o.mid=window.PAGE_MID;
}
o.uin||(o.uin=window.user_uin||0);
var n=[o.mid,o.name,o.key].join("|");
if(!this._cache||!this._cache[n])return this._cache&&(this._cache[n]=!0),this._xhr(o),
e.BadJs;
},
_xhr:function(e){
var o;
if(window.ActiveXObject)try{
o=new ActiveXObject("Msxml2.XMLHTTP");
}catch(n){
try{
o=new ActiveXObject("Microsoft.XMLHTTP");
}catch(t){
o=!1;
}
}else window.XMLHttpRequest&&(o=new XMLHttpRequest);
var r="";
for(var i in e)i&&e[i]&&(r+=[i,"=",encodeURIComponent(e[i]),"&"].join(""));
if(o&&o.open)o.open("POST","https://badjs.weixinbridge.com/report",!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),
o.onreadystatechange=function(){},o.send(r.slice(0,-1));else{
var a=new Image;
a.src="https://badjs.weixinbridge.com/report?"+r;
}
},
report:function(e,n,t){
return this.onError(o(e,n),t),this;
},
mark:function(e){
this._info=i(this._info,e);
},
nocache:function(){
return this._cache=!1,e.BadJs;
}
},window.addEventListener&&window.addEventListener("error",e.BadJs.winErr),window.addEventListener&&window.addEventListener("unhandledrejection",e.BadJs.winErr),
e.BadJs;
}
}(WX_BJ_REPORT),window.WX_BJ_REPORT=WX_BJ_REPORT,__moonf__(); }, 25);</script><script nonce="1756189750">
(function() {
var ua = window.navigator.userAgent;
if (/MicroMessenger\/([\d\.]+)/i.test(ua) && /wxwork/i.test(ua)) {
var profileName = document.getElementById('js_name');
var authorName = document.getElementById('js_author_name');
var accountNames = document.getElementsByClassName('account_nickname_inner');
if (profileName) {
profileName.classList.add('tips_global_primary');
}
if (authorName) {
authorName.classList.add('tips_global_primary');
}
if (accountNames && accountNames.length) {
accountNames[0].classList.add('tips_global_primary');
}
}
})();
</script>
<script nonce="1756189750">
(function() {
var ua = navigator.userAgent;
if (ua.indexOf("MicroMessenger") != -1 && ua.indexOf("Android") != -1){
var script = document.createElement('script');
var head = document.getElementsByTagName('head')[0];
script.type = 'text/javascript';
script.src = "https://midas.gtimg.cn/h5sdk/js/api/h5sdk.js";
head.appendChild(script);
}
})();
</script>
<script nonce="1756189750" type="text/javascript">
var real_show_page_time = +new Date();
if (!!window.addEventListener){
window.addEventListener("load", function(){
window.onload_endtime = +new Date();
});
}
if (true || parseInt(window.user_uin/73)%5===5 || "" === "1") {
console.log("use withoutIframe")
window.withoutIframe = true;
}
if("" === "0"){
console.log("disabled withoutIframe")
window.withoutIframe = false;
}
</script>
<style>.weui-hidden_abs{opacity:0;position:absolute;width:1px;height:1px;overflow:hidden}.weui-hidden-space:empty:before{content:"\00A0";position:absolute;width:1px;height:1px;overflow:hidden}.weui-a11y-combo{position:relative}.weui-a11y-combo__helper{opacity:0;position:absolute;width:100%;height:100%;overflow:hidden}.weui-a11y-combo__content{position:relative;z-index:1}.weui-wa-hotarea-el{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);min-width:44px;min-height:44px;width:100%;height:100%}.weui-wa-hotarea-el__wrp,.weui-wa-hotarea,.weui-wa-hotarea_before{position:relative}.weui-wa-hotarea-el__wrp a,.weui-wa-hotarea a,.weui-wa-hotarea_before a,.weui-wa-hotarea-el__wrp navigator,.weui-wa-hotarea navigator,.weui-wa-hotarea_before navigator{position:relative;z-index:1}.weui-wa-hotarea_before:before,.weui-wa-hotarea:after{content:"";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);min-width:44px;min-height:44px;width:100%;height:100%}.weui-hidden_abs.weui-hidden_abs,.weui-hidden_abs.aria_hidden_abs,.aria_hidden_abs.weui-hidden_abs,.aria_hidden_abs.aria_hidden_abs{position:absolute;opacity:0;overflow:hidden;left:auto;width:1px;height:1px}.weui-a11y_ref{display:none}</style>
<script nonce="1756189750" type="text/javascript" src="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/lib/wa-helper.min582545.js"></script>
<script nonce="1756189750" type="text/javascript">
</script>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_colon"></span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_comma"></span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_period">。</span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_type_video">视频</span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_type_weapp">小程序</span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_zan_btn_txt">赞</span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_zan_btn_tips">,轻点两下取消赞</span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_like_btn_txt">在看</span>
<span aria-hidden="true" class="weui-a11y_ref" id="js_a11y_like_btn_tips">,轻点两下取消在看</span>
</body>
<script nonce="1756189750" type="text/javascript" src="//res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/biz_common/promise55871f.js"></script>
</html>