Store.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?php
  2. return [
  3. 'store' => [
  4. 'class' => '\common\local\local_services\Store',
  5. 'stores' => [
  6. // store key:域名去掉http部分,作为key,这个必须这样定义。
  7. 'appfront.fecshoptest.com' => [
  8. 'language' => 'en_US', // 语言简码需要在@common/config/fecshop_local_services/FecshopLang.php 中定义。
  9. 'languageName' => 'English', // 语言简码对应的文字名称,将会出现在语言切换列表中显示。
  10. 'localThemeDir' => '@appfront/theme/terry/theme01', // 设置当前store对应的模板路径。关于多模板的方面的知识,您可以参看fecshop多模板的知识。
  11. 'thirdThemeDir' => [ // 第三方模板路径,数组,可以多个路径
  12. ],
  13. 'currency' => 'USD', // 当前store的默认货币,这个货币简码,必须在货币配置中配置
  14. /*
  15. * 当设备满足什么条件的时候,进行跳转。
  16. * 这种方式不怎么高效,最好的方式是在nginx中配置。
  17. */
  18. 'mobile' => [
  19. 'enable' => true,
  20. 'condition' => ['phone', 'tablet'], // phone 代表手机,tablet代表平板,当都填写,代表手机和平板都会进行跳转
  21. 'redirectDomain' => 'demo.fancyecommerce.com', // 如果是移动设备访问进行域名跳转,这里填写的值为store key
  22. 'https' => false, // 手机端url是否支持https,如果支持,设置https为true,如果不支持,设置为false
  23. 'type' => 'appserver', // 填写值选择:[apphtml5, appserver],如果是 apphtml5 , 则表示跳转到html5入口,如果是appserver,则表示跳转到vue这种appserver对应的入口
  24. ],
  25. // 第三方账号登录配置
  26. 'thirdLogin' => [
  27. // facebook账号登录
  28. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  29. 'facebook_app_id' => '108618299786621',
  30. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  31. ],
  32. // google账号登录
  33. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  34. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  35. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  36. ],
  37. ],
  38. // 用于sitemap生成中域名。
  39. 'https' => true,
  40. // sitemap的路径。
  41. 'sitemapDir' => '@appfront/web/sitemap.xml',
  42. ],
  43. 'fecshop.appfront.fancyecommerce.com/fr' => [
  44. 'language' => 'fr_FR',
  45. 'languageName' => 'Français',
  46. 'localThemeDir' => '@appfront/theme/terry/theme01',
  47. 'thirdThemeDir' => [ // 第三方模板路径,数组,可以多个路径
  48. '@fecshop/theme/rosegal/appfront/theme/rosegal',
  49. ],
  50. 'currency' => 'RMB',
  51. 'mobile' => [
  52. 'enable' => true,
  53. 'condition' => ['phone'], // phone 代表手机,tablet代表平板。
  54. 'redirectDomain' => 'fecshop.apphtml5.fancyecommerce.com/fr', // 跳转后的url。
  55. 'https' => false, // 手机端url是否支持https,如果支持,设置https为true,如果不支持,设置为false
  56. 'type' => 'apphtml5', // 填写值选择:[apphtml5, appserver],如果是 apphtml5 , 则表示跳转到html5入口,如果是appserver,则表示跳转到vue这种appserver对应的入口
  57. ],
  58. // 第三方账号登录配置
  59. 'thirdLogin' => [
  60. // facebook账号登录
  61. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  62. 'facebook_app_id' => '108618299786621',
  63. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  64. ],
  65. // google账号登录
  66. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  67. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  68. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  69. ],
  70. ],
  71. 'sitemapDir' => '@appfront/web/fr/sitemap.xml',
  72. ],
  73. 'fecshop.appfront.es.fancyecommerce.com' => [
  74. 'language' => 'es_ES',
  75. 'languageName' => 'Español',
  76. 'localThemeDir' => '@appfront/theme/terry/theme01',
  77. 'thirdThemeDir' => ['@fectfurnilife/appfront/theme/furnilife',],
  78. 'currency' => 'USD',
  79. 'mobile' => [
  80. 'enable' => false,
  81. 'condition' => ['tablet'],
  82. 'redirectDomain' => 'fecshop.apphtml5.es.fancyecommerce.com',
  83. 'https' => false, // 手机端url是否支持https,如果支持,设置https为true,如果不支持,设置为false
  84. 'type' => 'apphtml5', // 填写值选择:[apphtml5, appserver],如果是 apphtml5 , 则表示跳转到html5入口,如果是appserver,则表示跳转到vue这种appserver对应的入口
  85. ],
  86. // 第三方账号登录配置
  87. 'thirdLogin' => [
  88. // facebook账号登录
  89. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  90. 'facebook_app_id' => '108618299786621',
  91. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  92. ],
  93. // google账号登录
  94. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  95. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  96. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  97. ],
  98. ],
  99. 'sitemapDir' => '@appfront/web/sitemap_es.xml',
  100. ],
  101. 'fecshop.appfront.fancyecommerce.com/cn' => [
  102. 'language' => 'zh_CN',
  103. 'languageName' => '中文',
  104. 'localThemeDir' => '@appfront/theme/terry/theme01',
  105. 'thirdThemeDir' => [],
  106. 'currency' => 'CNY',
  107. 'mobile' => [
  108. 'enable' => true,
  109. 'condition' => ['phone', 'tablet'], // phone 代表手机,tablet代表平板,当都填写,代表手机和平板都会进行跳转
  110. 'redirectDomain' => 'demo.fancyecommerce.com', // 如果是移动设备访问进行域名跳转,这里填写的值为store key
  111. 'https' => false, // 手机端url是否支持https,如果支持,设置https为true,如果不支持,设置为false
  112. 'type' => 'appserver', // 填写值选择:[apphtml5, appserver],如果是 apphtml5 , 则表示跳转到html5入口,如果是appserver,则表示跳转到vue这种appserver对应的入口
  113. ],
  114. // 第三方账号登录配置
  115. 'thirdLogin' => [
  116. // facebook账号登录
  117. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  118. 'facebook_app_id' => '108618299786621',
  119. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  120. ],
  121. // google账号登录
  122. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  123. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  124. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  125. ],
  126. ],
  127. 'sitemapDir' => '@appfront/web/cn/sitemap.xml',
  128. ],
  129. 'fecshop.appfront.fancyecommerce.com/it' => [
  130. 'language' => 'it_IT',
  131. 'languageName' => 'Italiano',
  132. 'localThemeDir' => '@appfront/theme/terry/theme01',
  133. 'thirdThemeDir' => [],
  134. 'currency' => 'RMB',
  135. 'mobile' => [
  136. 'enable' => false,
  137. 'condition' => ['phone'], // phone 代表手机,tablet代表平板。
  138. 'redirectDomain' => 'fecshop.apphtml5.fancyecommerce.com/it', // 跳转后的url。
  139. 'https' => false, // 手机端url是否支持https,如果支持,设置https为true,如果不支持,设置为false
  140. 'type' => 'apphtml5', // 填写值选择:[apphtml5, appserver],如果是 apphtml5 , 则表示跳转到html5入口,如果是appserver,则表示跳转到vue这种appserver对应的入口
  141. ],
  142. // 第三方账号登录配置
  143. 'thirdLogin' => [
  144. // facebook账号登录
  145. 'facebook' => [ //fb api配置 ,fb可以一个app设置pc和手机web两个域名
  146. 'facebook_app_id' => '108618299786621',
  147. 'facebook_app_secret' => '420b56da4f4664a4d1065a1d31e5ec73',
  148. ],
  149. // google账号登录
  150. 'google' => [ //谷歌api visit https://code.google.com/apis/console to generate your google api
  151. 'CLIENT_ID' => '380372364773-qdj1seag9bh2n0pgrhcv2r5uoc58ltp3.apps.googleusercontent.com',
  152. 'CLIENT_SECRET' => 'ei8RaoCDoAlIeh1nHYm0rrwO',
  153. ],
  154. ],
  155. 'sitemapDir' => '@appfront/web/it/sitemap.xml',
  156. ],
  157. ],
  158. ],
  159. ];