Coder Social home page Coder Social logo

Comments (9)

xifat avatar xifat commented on May 5, 2024

同样期待。

from wechat-php-sdk.

trincer avatar trincer commented on May 5, 2024

今天目睹了微信改版,前一秒还ok,下一秒就错了。同期待

from wechat-php-sdk.

dodgepudding avatar dodgepudding commented on May 5, 2024

正在看,增加了挺多接口,其实很多接口之前也一直在用,只是没有向普通账号开放。

from wechat-php-sdk.

lawup avatar lawup commented on May 5, 2024

专门注册个账号来感谢您!
希望能快些把 getNewsList() 改好~ 谢谢~~

from wechat-php-sdk.

marquessate avatar marquessate commented on May 5, 2024

也在关注 getNewList(),一直没搞定。是不是技术上无法解决了。

from wechat-php-sdk.

easytzb avatar easytzb commented on May 5, 2024

昨天晚了看了下getNewsList,不存在技术上的问题。
只是原接口地址失效,注释和文档中不能得知getNewsList 返回数据格式,不敢改
记得的朋友可以提供一下

from wechat-php-sdk.

marquessate avatar marquessate commented on May 5, 2024

提供什么?上面回复没看懂。

from wechat-php-sdk.

easytzb avatar easytzb commented on May 5, 2024

getNewsList 方法返回数据格式

from wechat-php-sdk.

lawup avatar lawup commented on May 5, 2024

看你许久没写,我就自己写了,我不是程序员,用正则拼凑的,所以写的不好,不过可以正常用,呵呵,希望大家能优化一下:

function getNewsList(){

    $send_snoopy = new Snoopy;
    $t = time().strval(mt_rand(100,999));
    $type=10;
    $send_snoopy->referer = "https://mp.weixin.qq.com/cgi-bin/appmsg?begin=0&count=10&t=media/appmsg_list&type=10&action=list&token=".$this->_token."&lang=zh_CN";
    $send_snoopy->rawheaders['Cookie']= $this->cookie;
    $submit = "https://mp.weixin.qq.com/cgi-bin/appmsg?begin=0&count=10&t=media/appmsg_list&type=10&action=list&token=".$this->_token."&lang=zh_CN";
    $send_snoopy->fetch($submit);
    $result = $send_snoopy->results;

    $thehead = "wx.cgiData = ";  //
    $theend  = "}};"; //    
    preg_match_all("/".$thehead."(.*)".$theend."/siU",$result,$matches);  //匹配 siU表示可以换行        

    $matches[1][0] = $matches[1][0]."}}";
    return json_decode($matches[1][0],true);        

}        

from wechat-php-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.