zoukankan      html  css  js  c++  java
  • 微信公众平台开发(68)苹果IMEI查询

    微信公众平台开发 苹果IMEI查询 苹果序列号查询 iPhone/iPad/iPod/Mac 
    作者:方倍工作室 
    地址:http://www.cnblogs.com/txw1958/p/weixin69-apple-imei.html

    一、什么是IMEI 

    国际移动设备识别码(IMEI:International Mobile Equipment Identification Number)是区别移动设备的标志,储存在移动设备中,可用于监控被窃或无效的移动设备。IMEI可用移动终端设备通过键入“*#06#”查得(不同厂商的手机所需输入的内容不同,同一厂商不同手机所需输入的内容也可能不同)。其总长为15位,每位数字仅使用0~9的数字(含义见下文)。
    IMEI俗称“串号”,存储在手机的EEPROM(俗称“码片”)里,熟悉并了解这个号码对我们今后识别手机会起到非常大的作用。首先TAC码(IMEI的前六位数字)前三位在不同的时期会发生变化,而且即使同一部手机在不同的时期也会有不同的TAC码,如大家最熟悉的8210升级8250。再如爱立信的同一型号手机T39MC在不同地区的地方亦会有不同的号码:大陆行货为520406,香港则为520407。

    二、如何获得IMEI号码

    打开手机主屏幕,找到“设置”,触控之:

    在打开的“设置”界面下选择“通用”:

    然后在“通用”界面下选择“关于本机”项:

    进入后,找到里面的“序列号”这一栏,记录下这一串字符:下面还有IMEI

    三、如何在微信中查询

    1、调用pp25网站的接口实现查询

    function getAppleInfo_pp25($imei)
    {    $url = "http://www.25pp.com/xuliehao/index.php?action=search&sn=$imei";
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);       $output = curl_exec($ch);
        curl_close($ch);
        
        $message = json_decode($output,true);
    
        if ($message['resultcode'] == 100){
            $result = array(); 
            $title = "苹果产品信息查询";
            $description = "设备名称:".$message['result']['phone_model']."
    "."设备颜色:".$message['result']['color']."
    ".
            "设备容量:".$message['result']['size']."
    "."序列号:".$message['result']['serial_number']."
    ".
            "IMEI号:".$message['result']['imei_number']."
    "."激活状态:".$message['result']['active']."
    ".
            "电话支持:".$message['result']['tele_support_status'].
            (($message['result']['tele_support'] != "")?"[".$message['result']['tele_support']."]":"")."
    ".
            "硬件保修:".$message['result']['warranty_status'].
            (($message['result']['warranty'] != "")?"[".$message['result']['warranty']."]":"")."
    ".
            "生产工厂:".$message['result']['made_area'];
            $picurl = "http://www.25pp.com/xuliehao/devimages/".$message['result']['image'].".jpg";
            $result[] =  array("Title"=>$title, "Description" =>$description, "PicUrl" =>$picurl, "Url" =>""
            );
        }else{
            
        }
        return $result;
    }

    效果演示

  • 相关阅读:
    DZY Loves Sequences
    Boredom easy dp
    floyd算法 poj1125
    poj3259 Bellman_Ford算法
    poj1860 Bellman_Ford算法
    Java 获取资源文件路径
    CLion 2020.1.2 激活
    Kotlin学习笔记
    Kotlin Hello World
    WebStorm 2020.1.2 激活
  • 原文地址:https://www.cnblogs.com/txw1958/p/weixin69-apple-imei.html
Copyright © 2011-2022 走看看