国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 line
643B

  1. <?php
  2. namespace WeMini;
  3. if (!defined('DEDEINC')) exit ('dedebiz');
  4. use WeChat\Contracts\BasicWeChat;
  5. /**
  6. * 小程序搜索
  7. * Class Search
  8. * @package WeMini
  9. */
  10. class Search extends BasicWeChat
  11. {
  12. /**
  13. * 提交小程序页面url及参数信息
  14. * @param array $pages
  15. * @return array
  16. * @throws \WeChat\Exceptions\InvalidResponseException
  17. * @throws \WeChat\Exceptions\LocalCacheException
  18. */
  19. public function submitPages($pages)
  20. {
  21. $url = 'https://api.weixin.qq.com/cgi-bin/guide/getguideacct?access_token=ACCESS_TOKEN';
  22. return $this->callPostApi($url, ['pages' => $pages], true);
  23. }
  24. }
  25. ?>