diff --git a/index.html b/index.html index 394230d..950442c 100644 --- a/index.html +++ b/index.html @@ -191,7 +191,7 @@ function renderAccTable(tblId, rowsData, totalKey){ var body=''; rows.forEach(function(r){ body+=''+r.dt+''+n2(r[totalKey])+''; - accs.forEach(function(a){ body+=''+n2(r[a])+''; }); + accs.forEach(function(a){ body+=''+n2(r[a]!=null?r[a]:0)+''; }); // 缺失/找不到显示0 body+=''; }); document.querySelector('#'+tblId+' tbody').innerHTML=body; diff --git a/update.sh b/update.sh index aa1d93d..0290134 100755 --- a/update.sh +++ b/update.sh @@ -58,7 +58,7 @@ ACC={102:'nativex_API',99:'adsplay_API',98:'clickpuff_API',97:'affle_API',96:'mo CN_ACCS=['acshare','adsdeep','adwisdom','affinityad','alphadsp','altosum','apkpure','appfortis','appnextads','bidmatrix','bidneuron','bytemobi','cookeads','dolphin','dolphin2','flowbox','flymob','gleamx','gridads','imax','influxtec','iogerads','leapmob','lightspot','mbupps','mobgem','moblegend','mocaads','movablead','mstoko','nativexads','Ricefruit','shockit','smartconnectads','startym','tenads','verse','vertexs','vikingmedia','xoomads','yolo','youmi', 'bidneuron_API','quarklio_API','quarklio_ddj_API','Iogerads_API','adwisdom_ddj_API','mejoy_API','witgala_API','dolemobi_API','flatads_API','adnov_API','goodjoy_API','yomiads_API','flymobi_API','vertex_api','isummer_API','viking_api','hope_api','aba_api','volo_api','seanear_API','mobhuge_API','altosum_API','clickpuff_API'] INTL_ACCS=['adsflourish','affleads','avowads','cubicom','keendigi','launchpad','mobavenue','stackyads','vserv','xapad', - 'sync_API','motilal_API','acmemobi_API','strongmetrics_API','c2c'] + 'sync_API','motilal_API','acmemobi_API','strongmetrics_API','c2c','adsplay_API'] # ---- 客户分类 base 明细 (以文字明细为准) ---- CUST_BASE_RAW="""头部直客渠道|appnextads|7422.98