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.

Wx.event.config.php 2.5 KiB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * 微信消息推送配置文件
  4. * 参数说明:
  5. * type 推送消息类型 分为:news:图文 video:视频 img:图片 voice:语音 这四类以数组来配置 文字类型则直接配字符串就行
  6. * id 素材ID 对应微信公众平台的素材 如要知道各个素材请访问 xxx.xxx.xx/module/wxInterface/getMedia?type=xxx
  7. *title 标题 只有视频才需要
  8. *des 简介 只有视频才需要
  9. *function 执行方法 当推送该消息时就会执行 WxDoFunction.php 中的该方法 如欢迎语时就会触发添加用户 addUser
  10. * ============================================================================
  11. * * 版权所有 运游通 * *
  12. * 网站地址: http://www.zhizhuchuxing.com
  13. * ----------------------------------------------------------------------------
  14. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  15. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  16. * ============================================================================
  17. * Author By: 倪宗锋
  18. * PhpStorm WxText.config.php
  19. * Create By 2017/1/4 15:09 $
  20. */
  21. function setMenuUrls($url)
  22. {
  23. $loginUrl = 'http://ks.zhizhuchuxing.com/zzcx/user/login/menu-url?redirect=';
  24. $reUrl = $loginUrl . urlencode($url);
  25. return $reUrl;
  26. }
  27. return array(
  28. 'subscribe' => array(//小视频
  29. 'type' => 'text',//类型 图文
  30. 'text' => '欢迎来到昆旅集散,终于可以和你一起旅行啦!在线选座、出行车辆信息及车辆实时位置查看,请点击“我的行程”菜单,绑定预定手机号即可进行操作!如有其它问题,请直接输入咨询内容,昆旅客服会马上回复你。',
  31. ),
  32. 'SCAN' => array(
  33. 'type' => 'text',//类型 图文
  34. 'text' => '欢迎来到昆旅集散,终于可以和你一起旅行啦!在线选座、出行车辆信息及车辆实时位置查看,请点击“我的行程”菜单,绑定预定手机号即可进行操作!如有其它问题,请直接输入咨询内容,昆旅客服会马上回复你。',
  35. 'function' => 'scan'
  36. ),
  37. 'unsubscribe' => array(//用户取消关注
  38. ),
  39. 'xuanzuo' => [
  40. 'type' => 'news',//类型 图文
  41. 'id' => 'AuXDjP791-NMcyJajUxBL2JlcrqphPGAa1pZIjD1iVM',
  42. ],
  43. 'app_download' => array(//app下载
  44. 'type' => 'img',//类型 图文
  45. 'id' => 'uJxwhw6_HaYV5ixoXE8s6rTxRq4ZFWqvStmuK6t4RLg',
  46. ),
  47. 'FX_SYS'=>[
  48. 'type' => 'text',//类型 图文
  49. 'text' => '',
  50. ],
  51. );