和淘宝不一样,天猫的找到了一个接口可用,还是挺方便的
拿到商品id
$url = "https://detail.m.tmall.com/item.htm?id=".$id."&tbpm=3";
$response = $this->http_curl($url);
$response = mb_convert_encoding($response, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5');
preg_match_all('/data-ks-lazyload="(http.+?)"/i', $response, $matches);
完事! 就是这么滴容易