CustomService.php 661 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: admin
  5. * Date: 2019/10/6
  6. * Time: 18:40
  7. */
  8. namespace wx\offiaccount\msg;
  9. use wx\Base;
  10. class CustomService extends Base
  11. {
  12. /**
  13. * 修改客服帐号
  14. * @param $token
  15. * @param $data
  16. * @return mixed|null
  17. */
  18. public function updateKfaccount($token,$data){
  19. $url = 'https://api.weixin.qq.com/customservice/kfaccount/update?access_token='.$token;
  20. return$this->curl($url,$data);
  21. }
  22. public function messageSend($token, $data){
  23. $url = 'https://api.weixin.qq.com/customservice/kfaccount/update?access_token='.$token;
  24. return$this->curl($url,$data);
  25. }
  26. }