国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
633B

  1. <?php
  2. namespace WeMini;
  3. if (!defined('DEDEINC')) exit('dedebiz');
  4. use WeChat\Contracts\BasicWeChat;
  5. /**
  6. * 小程序生物认证
  7. * Class Soter
  8. * @package WeMini
  9. */
  10. class Soter extends BasicWeChat
  11. {
  12. /**
  13. * SOTER 生物认证秘钥签名验证
  14. * @param array $data
  15. * @return array
  16. * @throws \WeChat\Exceptions\InvalidResponseException
  17. * @throws \WeChat\Exceptions\LocalCacheException
  18. */
  19. public function verifySignature($data)
  20. {
  21. $url = 'https://api.weixin.qq.com/cgi-bin/soter/verify_signature?access_token=ACCESS_TOKEN';
  22. return $this->callPostApi($url, $data, true);
  23. }
  24. }