OpenPlatformConstants.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Bear
  5. * Date: 2018/11/29
  6. * Time: 下午2:16
  7. */
  8. namespace app\main\constants;
  9. class OpenPlatformConstants
  10. {
  11. const URL_TYPE_UNKNOWN = 0;//未识别
  12. const URL_TYPE_ADMIN = 1;//后台首页
  13. const URL_TYPE_PAY = 2;//支付
  14. const URL_TYPE_SPREAD = 3;//推广
  15. const WEXIN_NEED_LOGIN = [];
  16. const BROWSER_NEED_LOGIN = [];
  17. //全网发布
  18. public static $app_id_for_all = [
  19. 'wx570bc396a51b8ff8',
  20. 'wxd101a85aa106f53e',
  21. ];
  22. public static $event_callback_user = [
  23. 'gh_3c884a361561',
  24. 'gh_8dad206e9538',
  25. ];
  26. const PAY_CALLBACK_PREFIX = 'callback';
  27. const PALM_PAY_URL = 'https://pay.palmpay.cn/sdkServer/thirdpays/pay/WECHAT_SUB';
  28. const PALM_PAY_VERSION = '3.0';
  29. public static $ignoreUrlArr = [
  30. 'index/index/referral', //推广链接 t 短连接
  31. 'index/index/dev',
  32. 'index/index/clear',
  33. 'index/popup/window',
  34. ];
  35. //忽略全部处理逻辑的页面url
  36. public static $ignoreSubUrlArr = [
  37. 'index/book/chapter',
  38. 'index/book/menu',
  39. 'index/activity/pay',
  40. '/index/recharge/activity',
  41. 'index/index/activity',
  42. 'index/index/vipreferral',
  43. 'index/index/booklistch',
  44. 'index/index/booklist',
  45. ];
  46. //需要验证客服消息弹框的路由
  47. public static $customTipsUrlArr = [
  48. '/index/user/index', //个人中心
  49. '/index/user/recent',//最近阅读
  50. '/index/index/index',//商城首页
  51. '/index/book/list',//书籍列表
  52. '/index/category/index',//书籍分类
  53. '/index/category/books',//书籍页
  54. ];
  55. }