美文网首页
php上传apk,ipa解析问题

php上传apk,ipa解析问题

作者: 过往_eed8 | 来源:发表于2017-11-25 12:32 被阅读0次

    public function Geticon()

    {

    $img = $_FILES;

    $time = date("Y-m-d").'/';

    $path1 = 'Public/icon/'.$time;

    if(!file_exists($path1)){

    mkdir($path1,0777,true);

    }

    $homeId = $_SESSION['homeId'];

    $newName = time()."_".$homeId.'.png';

    $path = $path1.$newName;

    $res = move_uploaded_file($_FILES["upFile"]["tmp_name"],$path);

    $imagepath = $time.$newName;

    $sys = $_POST['sys'];

    if($sys == 'ios'){

    require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/pngCompote.php");

    $filename = $path;

    $newfileName = $path1.time()."_".$homeId.'a.png';

    //如果加了密,,草解密不了,狗曰的

    $png = new \PngFile($filename);

    if ($png->isIphone) {

    $png->revertIphone($newfileName);

    $imagepath = $newfileName;

    }

    }

    $params["icon"] = 'iconimg';

    $params['res'] = $res;

    $params['path'] = $imagepath;

    $params['path1'] = $iconres;

    echo json_encode($params);

    }

    相关文章

      网友评论

          本文标题:php上传apk,ipa解析问题

          本文链接:https://www.haomeiwen.com/subject/fvqcbxtx.html