rock->debugs($palias,'pushalias');//判断能不能推送,打印这个 $xharr = array( 'uids' => $uids, 'title' => $this->rock->jm->base64encode($title), //'cont' => $this->rock->jm->base64encode($cont), 'desc' => $desc, 'systype'=> getconfig('systype') ); $isuguanw = false; //没有设置推送(走的信呼官网渠道) if(!$xmpush->sendbool() && !$hwpush->sendbool()){ if($xmalias || $newalias || $oldalias || $alias2019){ if($xmalias)$xharr['xmalias'] = join(',', $xmalias); if($newalias)$xharr['newalias'] = join(',', $newalias); if($oldalias)$xharr['oldalias'] = join(',', $oldalias); if($alias2019)$xharr['alias2019'] = join(',', $alias2019); $isuguanw = true; } }else{ $desc = $this->rock->jm->base64decode($desc); $xmarr = array();//小米的人员 $othar = array();//其他人用 $iosar = array(); //IOS $hwarr = array(); //华为 $iospas= array(); if($alias2019)foreach($alias2019 as $ali1){ $ali1aa = explode('|', $ali1); $regid = $ali1aa[0]; $sjlxx = $ali1aa[1]; if(contain($sjlxx,'xiaomi')){ $xmarr[] = $regid; }else if(contain($sjlxx,'huawei')){ if(isset($ali1aa[3]) && $ali1aa[3])$hwarr[] = $ali1aa[3]; }else if(contain($sjlxx,'iphone')){ $iosar[] = $regid; $iospas[]= $ali1; }else{ $othar[] = $regid; } } $msg = $msg1 = $msg2 = ''; if($oldalias)$msg = $xmpush->androidsend($oldalias, $title, $desc, $cont); if($xmarr)$msg = $xmpush->androidsend($xmarr, $title, $desc); if($iosar){ if(!$xmpush->jpushiosbool()){ $xharr['alias2019'] = join(',', $iospas); $isuguanw = true; }else{ $msg1= $xmpush->jpushiossend($iosar, $title, $desc); } } if($hwarr)$msg2= $hwpush->androidsend($hwarr, $title, $desc); $msg5 = $msg.$msg1.$msg2; if($msg5)$this->rock->debugs($msg5,'mypush'); } if($isuguanw){ $runurl = c('xinhu')->geturlstr('jpushplat', $xharr); c('curl')->getcurl($runurl); } } }