Helper.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * FecShop file.
  4. * @link http://www.fecshop.com/
  5. * @copyright Copyright (c) 2016 FecShop Software LLC
  6. * @license http://www.fecshop.com/license/
  7. */
  8. return [
  9. 'helper' => [
  10. 'class' => 'fecshop\services\Helper',
  11. // 子服务
  12. 'childService' => [
  13. 'ar' => [
  14. 'class' => 'fecshop\services\helper\AR',
  15. ],
  16. /* 已经废除,现在使用Yii::$app->serviceLog
  17. 'log' => [
  18. 'class' => 'fecshop\services\helper\Log',
  19. 'log_config' => [
  20. // service log config
  21. 'services' => [
  22. // if enable is false , all services will be close
  23. 'enable' => false,
  24. // print log info to db.
  25. 'dbprint' => false,
  26. // print log info to front html
  27. 'htmlprint' => false,
  28. // print log
  29. 'htmlprintbyparam' => [
  30. // like :http://fecshop.appfront.fancyecommerce.com/cn/?servicelog=xxxxxxxx
  31. 'enable' => false,
  32. 'paramKey' => 'servicelog',
  33. 'paramVal' => 'xxxxxxxx',
  34. ],
  35. ],
  36. ],
  37. ],
  38. */
  39. 'wx' => [
  40. 'class' => 'fecshop\services\helper\Wx',
  41. 'configFile' => '@common/config/payment/wxpay/lib/WxPay.Micro.Config.php',
  42. ],
  43. 'errors' => [
  44. 'class' => 'fecshop\services\helper\Errors',
  45. ],
  46. 'zipFile' => [
  47. 'class' => 'fecshop\services\helper\ZipFile',
  48. ],
  49. 'errorHandler' => [
  50. 'class' => 'fecshop\services\helper\ErrorHandler',
  51. ],
  52. 'mobileDetect' => [
  53. 'class' => 'fecshop\services\helper\MobileDetect',
  54. ],
  55. 'captcha' => [
  56. 'class' => 'fecshop\services\helper\Captcha',
  57. 'charset' => '023456789', //随机因子
  58. 'codelen' => 4, //验证码长度
  59. 'width' => 130, //宽度
  60. 'height' => 50, //高度
  61. 'fontsize' => 20, //子体大小
  62. 'case_sensitive'=> false, // 是否区分大小写,false代表不区分
  63. ],
  64. 'country' => [
  65. 'class' => 'fecshop\services\helper\Country',
  66. //'default_country' => 'US',
  67. ],
  68. 'format' => [
  69. 'class' => 'fecshop\services\helper\Format',
  70. //'default_country' => 'US',
  71. ],
  72. 'appserver' => [
  73. 'class' => 'fecshop\services\helper\Appserver',
  74. ],
  75. 'appapi' => [
  76. 'class' => 'fecshop\services\helper\Appapi',
  77. ],
  78. 'echart' => [
  79. 'class' => 'fecshop\services\helper\Echart',
  80. ],
  81. ],
  82. ],
  83. ];