global.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <?php
  2. /**
  3. * 应用全局默认配置
  4. */
  5. return [
  6. //当前系统版本
  7. "version" => "v0.0.4",
  8. //当前系统环境, dev, test, prod 三种环境,分别对应开发,测试, 生产环境
  9. "env" => "test",
  10. //front版本号
  11. "frontVersion" => "3.9.22.17",
  12. //front cdn date
  13. "frontCdnDate" => "20170927",
  14. //开放平台接口url
  15. "apiBaseUrl" => "",
  16. //静态资源url
  17. "assetsUrl" => "https://pf-assets.zhipuzi.com",
  18. //当前域名
  19. "presentUrl"=>"https://pf.zhipuzi.com",
  20. //官网地址
  21. "officialWebsiteUrl"=>"https://www.zhipuzi.com",
  22. //餐饮版进销存url
  23. "cyJxcUrl" => "https://jxc.zhipuzi.com",
  24. //零售版进销存url
  25. "lsJxcUrl" => "https://lsjxc.zhipuzi.com",
  26. //wap网站url, 对应front url
  27. "wapBaseUrl" => "",
  28. //www网站url, 对应www url
  29. "wwwBaseUrl" => "",
  30. //admin系统url
  31. "adminUrl" => "https://admin.zhipuzi.com",
  32. //子系统后台url
  33. "consoleUrl" => "https://console-dev3.zhipuzi.com",
  34. //餐饮版后台url
  35. "cyConsoleUrl"=>"https://cy.zhipuzi.com",
  36. //零售版后台url
  37. "lsConsoleUrl"=>"https://ls.zhipuzi.com", //https://ls-dev.zhipuzi.com
  38. //餐饮版后台url
  39. "cyApiUrl"=>"https://cyapi.zhipuzi.com",
  40. //零售版后台url
  41. "lsApiUrl"=>"https://lsapi.zhipuzi.com",
  42. //又拍云cdn, front使用的cdn地址
  43. "frontCdnBaseUrl" => "",
  44. //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
  45. "wxYxBaseUrl" => "",
  46. //微信开放平台配置s
  47. "wechatOpenPlatform" => [
  48. 'appid' => '',
  49. 'secret' => '',
  50. //公众号消息校验Token
  51. 'token' => '',
  52. //公众号消息加解密Key
  53. 'encodingaeskey' => '',
  54. ],
  55. //智铺子公众号配置
  56. "wechat" => [
  57. 'appid' => '',
  58. 'secret' => '',
  59. 'lewaimaiAppid' => 'wxcc4eedbb856aa909',
  60. ],
  61. //乐快送公众号配置
  62. "lekuaisong" => [
  63. 'appid' => 'wx808d7a8d91141774',
  64. 'secret' => 'd8620e8ca89b407750006f73dcca0959',
  65. ],
  66. //支付宝开放平台设置
  67. "alipayOpenPlatform" => [
  68. 'appid' => '',
  69. ],
  70. //消息队列配置
  71. "messageQueue" => [
  72. //队列名配置
  73. "queues" => [
  74. "bigTask" => 'big-task',
  75. "smallTask" => 'small-task',
  76. ],
  77. ],
  78. //h5 静态资源入口路径
  79. 'h5StaticResourcePath' => LWM_PROJECT_PATH . '/assets/wx/entry_page',
  80. //模板消息里的广告url
  81. 'adUrlInMessage' => 'https://www.zhipuzi.com',
  82. //乐如云公众号配置
  83. "leruyun" => [
  84. 'appid' => 'wxc64f2a7e9b2c1c1c',
  85. 'secret' => 'fc8f1d8c6a54da8ce96befe521699cf5',
  86. 'mchid' => '1308161901',
  87. 'key' => '77ef3993690f958b81d9907cb9c9d676',
  88. ],
  89. //乐商城
  90. // "leruyun" => [
  91. // 'appid' => 'wx0b9c078ea9658bcc',
  92. // 'secret' => '53494768455c3a7825dd8dbb52ba6014',
  93. // 'mchid' => '1366875502',
  94. // 'key' => '6462a12c80cbba255361ee0800662679',
  95. // ],
  96. //乐刷公众号配置
  97. "leshua" => [
  98. //这个是乐刷商务版的appid
  99. // 'appid' => 'wx504536a84f74ba0b',
  100. //这个是迅享生活的appid
  101. // 'appid' => 'wx463dbb520a47871b',
  102. //这个是迅享同城的appid
  103. 'appid' => 'wx2e7e5a2a92bd1efe',
  104. ],
  105. //乐外卖官方支付宝账号
  106. "alipay" => [
  107. 'appid' => '2017070407642048',
  108. ],
  109. //乐外卖定制推送服务
  110. 'pushUrl' => 'http://115.29.174.119:9501',
  111. //配置是否收取订单费,true收取,false取消
  112. "is_ordernum" => true,
  113. //智铺子公众号在商家后台的adminId
  114. "adminIdForZhipuzi" => "",
  115. //智铺子官方支付宝账号
  116. "zhipuziOfficialAli" => [
  117. 'appid' => '2018032302431616',
  118. ],
  119. //智铺子商家官方公众号配置
  120. "zhipuziSellerOfficialWechat" => [
  121. 'appid' => 'wxb6d63807a0d804e6',
  122. 'secret' => '08344e16e77bd64d99ba411399308440',
  123. ],
  124. "adminIdForLewaimai" => "",
  125. //爱财的设置
  126. 'aicaiPay' =>[
  127. //自己设置
  128. 'appid' => 'aicai',
  129. ],
  130. // 允许ip发送验证码的最大次数
  131. 'allow_ip_max_send_num' => 20,
  132. //乐外卖平台店铺绑定接口
  133. 'lewaimai_url' => 'https://api-dev.lewaimai.com',
  134. 'lwm_appid' => 'dsadsa12354654dsad2wqewq22ee',
  135. 'lwm_secret' => '#sdfa2d!@#AAAAS#@!',
  136. //又拍云配置
  137. 'upyun' => [
  138. //云存储实例
  139. 'bucket' => 'zhipuzi-cdn',
  140. //操作员
  141. 'operator' => 'zhipuzi',
  142. //密码
  143. 'password' => 'Zhipu1202018',
  144. ],
  145. //智铺子平台,网站登录状态同步key
  146. 'webSyncLoginKey' => 'JnkjjJggii!#!@99',
  147. //同步登录状态的接口地址
  148. 'webSyncLoginApis' => [
  149. ],
  150. //同步登录状态间隔
  151. 'webSyncloginTimeout' => 7200,
  152. //主域名禁止访问那些路由,支持正则表达式
  153. 'mainDomainDenyRoute' => [
  154. //禁止访问砍价
  155. '/h5/lwm/bargain/.*',
  156. ],
  157. //商品券商家ID列表
  158. 'goods_coupon_admin_ids' => [15815],
  159. //业务系统对应域名
  160. 'business_host' =>[
  161. 'repast' => 'https://cyh5.zhipuzi.com', //餐饮系统域名
  162. 'retail' => 'https://lsh5.zhipuzi.com', //零售系统域名
  163. "cyapi" => '', //餐饮api
  164. "lsapi" => '', //零售api
  165. //微信营销域名,支持{appid}参数,格式: http://{appid}.yx.zhipuzi.com {appid}会替换成微信公众号appid
  166. //餐饮营销域名
  167. "cyYxBaseUrl" => "", //餐饮营销域名
  168. //零售营销域名
  169. "lsYxBaseUrl" => "", //零售营销域名
  170. ],
  171. //业务系统-h5内网地址
  172. 'business_h5_internal_host' =>[
  173. 'repast' => 'https://cyh5-dev.zhipuzi.com', //餐饮系统H5域名
  174. 'retail' => 'https://lsh5-dev.zhipuzi.com', //零售系统H5域名
  175. 'repastapi' => 'https://cyapi.zhipuzi.com', //餐饮系统api域名
  176. 'retailapi' => 'https://lsapi.zhipuzi.com', //零售系统api域名
  177. ],
  178. 'agent' => [ //代理商相关配置
  179. 'url' => 'https://agent.zhipuzi.com', //http://agent-local.zhipuzi.com https://agent-dev.zhipuzi.com
  180. 'agent_appid' => '84b19199fd221a78c491cd553cbb4ab7',
  181. 'agent_secret' => '#repast!@#AfAS#@!',
  182. ],
  183. ];