"; echo "超时时间:".time()+$chaoshi; echo "
"; chaoshile($uniacid,$chaoshi,$website,$url); function chaoshile($uniacid,$chaoshi,$website,$url){ //超时自动退出 读取时间表 读取客服表 判断时间 超过的 ->设置成空闲 .给用户发消息超时退出. $json = file_get_contents('json/'.$uniacid.'_time.json');//读取key列表 $kefutime = json_decode($json,true); print_r($kefutime); echo "
"; $json = file_get_contents('json/'.$uniacid.'_kefu.json');//读取数字key列表 $kefustr = json_decode($json,true); print_r($kefustr); echo "
"; $arr = array_keys($kefutime);//openid foreach ($arr as $arr){ $kftime=$kefutime[$arr]+$chaoshi; if ($kftime