Config.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <?php
  2. return [
  3. 'app_name' => PROJECT_NAME,
  4. 'app_path' => PROJECT_PATH,
  5. // redis
  6. 'queue' => [
  7. 'class' => 'Jobs\Model\Queue\MRedisTopicQueue',
  8. 'host' => '120.0.0.1',
  9. 'port' => '6379',
  10. 'password' => '',
  11. 'database' =>'' ,
  12. ],
  13. 'db' => [
  14. 'default' => [
  15. 'driver' => 'mysql',
  16. 'host' => '127.0.0.1',
  17. 'port' => '3306',
  18. 'username' => 'qianniao',
  19. 'password' => 'qianniao',
  20. 'dbname' => 'dev_b2b_anfei',
  21. 'prefix' => 'qianniao',
  22. 'pconnect' => 0,
  23. 'charset' => 'utf8',
  24. ],
  25. 'stock' => [
  26. 'driver' => 'mysql',
  27. 'host' => '127.0.0.1',
  28. 'port' => '3306',
  29. 'username' => 'qianniao',
  30. 'password' => 'qianniao',
  31. 'dbname' => 'devstock_b2b',
  32. 'prefix' => 'qianniao',
  33. 'pconnect' => 0,
  34. 'charset' => 'utf8',
  35. ],
  36. 'price' => [
  37. 'driver' => 'mysql',
  38. 'host' => '127.0.0.1',
  39. 'port' => '3306',
  40. 'username' => 'qianniao',
  41. 'password' => 'qianniao',
  42. 'dbname' => 'devprice_b2b',
  43. 'prefix' => 'qianniao',
  44. 'pconnect' => 0,
  45. 'charset' => 'utf8',
  46. ],
  47. 'log' => [
  48. 'driver' => 'mysql',
  49. 'host' => '127.0.0.1',
  50. 'port' => '3306',
  51. 'username' => 'qianniao',
  52. 'password' => 'qianniao',
  53. 'dbname' => 'devlog_b2b',
  54. 'prefix' => 'qianniao',
  55. 'pconnect' => 0,
  56. 'charset' => 'utf8',
  57. ],
  58. 'finance' => [
  59. 'driver' => 'mysql',
  60. 'host' => '127.0.0.1',
  61. 'port' => '3306',
  62. 'username' => 'qianniao',
  63. 'password' => 'qianniao',
  64. 'dbname' => 'devfinance_b2b',
  65. 'prefix' => 'qianniao',
  66. 'pconnect' => 0,
  67. 'charset' => 'utf8',
  68. ],
  69. ],
  70. 'cache' => [
  71. 'default' => [
  72. 'storage' => 'redis',
  73. 'host' => '127.0.0.1',
  74. 'port' => '6379',
  75. 'auth' => '',
  76. 'prefix' => '',
  77. 'database' => '0',
  78. ],
  79. 'mapping' => [
  80. 'storage' => 'redis',
  81. 'host' => '127.0.0.1',
  82. 'port' => '6379',
  83. 'auth' => '',
  84. 'prefix' => '',
  85. 'database' => '1',//用于缓存地区
  86. ],
  87. 'user' => [
  88. 'storage' => 'redis',
  89. 'host' => '127.0.0.1',
  90. 'port' => '6379',
  91. 'auth' => '',
  92. 'prefix' => '',
  93. 'database' => '2',
  94. ],
  95. 'finance' => [
  96. 'storage' => 'redis',
  97. 'host' => '127.0.0.1',
  98. 'port' => '6379',
  99. 'auth' => '',
  100. 'prefix' => '',
  101. 'database' => '3',
  102. ],
  103. 'activity' => [
  104. 'storage' => 'redis',
  105. 'host' => '127.0.0.1',
  106. 'port' => '6379',
  107. 'auth' => '',
  108. 'prefix' => '',
  109. 'database' => '5',
  110. ],//活动
  111. ],
  112. 'dataResources' => [
  113. 'stock' => [
  114. 'host' => '0.0.0.0',
  115. 'port' => '9501'
  116. ]
  117. ],
  118. 'search' => [
  119. 'goods_search' =>[
  120. 'protocol' => 'http',
  121. 'servers' => [
  122. '49.233.71.60:9200'
  123. ],
  124. 'timeout' => null,
  125. 'index' => 'dev_goods_search',
  126. 'type' => 'goods',
  127. ],
  128. 'customer_search' =>[
  129. 'protocol' => 'http',
  130. 'servers' => [
  131. '49.233.71.60:9200'
  132. ],
  133. 'timeout' => null,
  134. 'index' => 'dev_customer_search',
  135. 'type' => 'customer',
  136. ],
  137. 'goods_basic_search' =>[
  138. 'protocol' => 'http',
  139. 'servers' => [
  140. '49.233.71.60:9200'
  141. ],
  142. 'timeout' => null,
  143. 'index' => 'dev_goods_basic_search',
  144. 'type' => 'goodsBasic',
  145. ],
  146. 'order_search' =>[
  147. 'protocol' => 'http',
  148. 'servers' => [
  149. '49.233.71.60:9200'
  150. ],
  151. 'timeout' => null,
  152. 'index' => 'dev_order_search',
  153. 'type' => 'order',
  154. ],
  155. 'shop_search' =>[
  156. 'protocol' => 'http',
  157. 'servers' => [
  158. '49.233.71.60:9200'
  159. ],
  160. 'timeout' => null,
  161. 'index' => 'dev_shop_search',
  162. 'type' => 'shop',
  163. ],
  164. 'login_log' =>[
  165. 'protocol' => 'http',
  166. 'servers' => [
  167. '49.233.71.60:9200'
  168. ],
  169. 'timeout' => null,
  170. 'index' => 'dev_login_log',
  171. 'type' => 'login',
  172. ],
  173. 'logs' => [
  174. 'protocol' => 'http',
  175. 'servers' => [
  176. '49.233.71.60:9200'
  177. ],
  178. 'timeout' => null,
  179. 'index' => 'dev_logs',
  180. 'type' => 'logs',
  181. ],
  182. 'inventory_in_search' => [
  183. 'protocol' => 'http',
  184. 'servers' => [
  185. '49.233.71.60:9200'
  186. ],
  187. 'timeout' => null,
  188. 'index' => 'dev_inventory_in_search',
  189. 'type' => 'inventory_in',
  190. ],
  191. 'priceAdjustmentSheet_search' => [
  192. 'protocol' => 'http',
  193. 'servers' => [
  194. '49.233.71.60:9200'
  195. ],
  196. 'timeout' => null,
  197. 'index' => 'dev_price_adjustment_sheet_search',
  198. 'type' => 'priceAdjustmentSheet',
  199. ],
  200. 'customerPriceAdjustmentSheet_search' => [
  201. 'protocol' => 'http',
  202. 'servers' => [
  203. '49.233.71.60:9200'
  204. ],
  205. 'timeout' => null,
  206. 'index' => 'dev_customer_price_adjustment_sheet_search',
  207. 'type' => 'customerPriceAdjustmentSheet',
  208. ],
  209. 'inventory_out_search' => [
  210. 'protocol' => 'http',
  211. 'servers' => [
  212. '49.233.71.60:9200'
  213. ],
  214. 'timeout' => null,
  215. 'index' => 'dev_inventory_out_search',
  216. 'type' => 'inventory_out',
  217. ],
  218. 'allocate_search' => [
  219. 'protocol' => 'http',
  220. 'servers' => [
  221. '49.233.71.60:9200'
  222. ],
  223. 'timeout' => null,
  224. 'index' => 'dev_allocate_search',
  225. 'type' => 'allocate',
  226. ],
  227. 'stocktaking_search' => [
  228. 'protocol' => 'http',
  229. 'servers' => [
  230. '49.233.71.60:9200'
  231. ],
  232. 'timeout' => null,
  233. 'index' => 'dev_stocktaking_search',
  234. 'type' => 'stocktaking',
  235. ],
  236. 'inventory_details_search' => [
  237. 'protocol' => 'http',
  238. 'servers' => [
  239. '49.233.71.60:9200'
  240. ],
  241. 'timeout' => null,
  242. 'index' => 'dev_inventory_details_search',
  243. 'type' => 'inventory_details',
  244. ],
  245. 'order_out_search' => [
  246. 'protocol' => 'http',
  247. 'servers' => [
  248. '49.233.71.60:9200'
  249. ],
  250. 'timeout' => null,
  251. 'index' => 'dev_order_out_search',
  252. 'type' => 'order_out',
  253. ],
  254. 'purchase_details_search' => [
  255. 'protocol' => 'http',
  256. 'servers' => [
  257. '49.233.71.60:9200'
  258. ],
  259. 'timeout' => null,
  260. 'index' => 'dev_purchase_details_search',
  261. 'type' => 'purchase_details',
  262. ],
  263. 'coupon_search' => [
  264. 'protocol' => 'http',
  265. 'servers' => [
  266. '49.233.71.60:9200'
  267. ],
  268. 'timeout' => null,
  269. 'index' => 'dev_coupon_search',
  270. 'type' => 'coupon',
  271. ],
  272. 'user_coupon_search' => [
  273. 'protocol' => 'http',
  274. 'servers' => [
  275. '49.233.71.60:9200'
  276. ],
  277. 'timeout' => null,
  278. 'index' => 'dev_user_coupon_search',
  279. 'type' => 'user_coupon',
  280. ],
  281. 'activity_search' => [
  282. 'protocol' => 'http',
  283. 'servers' => [
  284. '49.233.71.60:9200'
  285. ],
  286. 'timeout' => null,
  287. 'index' => 'dev_activity_search',
  288. 'type' => 'activity',
  289. ],
  290. 'should_receive_receipt_search' => [
  291. 'protocol' => 'http',
  292. 'servers' => [
  293. '49.233.71.60:9200'
  294. ],
  295. 'timeout' => null,
  296. 'index' => 'dev_should_receive_receipt_search',
  297. 'type' => 'should_receive_receipt',
  298. ],
  299. 'should_pay_receipt_search' => [
  300. 'protocol' => 'http',
  301. 'servers' => [
  302. '49.233.71.60:9200'
  303. ],
  304. 'timeout' => null,
  305. 'index' => 'dev_should_pay_receipt_search',
  306. 'type' => 'should_pay_receipt',
  307. ],
  308. 'received_receipt_search' => [
  309. 'protocol' => 'http',
  310. 'servers' => [
  311. '49.233.71.60:9200'
  312. ],
  313. 'timeout' => null,
  314. 'index' => 'dev_received_receipt_search',
  315. 'type' => 'received_receipt',
  316. ],
  317. 'paid_receipt_search' => [
  318. 'protocol' => 'http',
  319. 'servers' => [
  320. '49.233.71.60:9200'
  321. ],
  322. 'timeout' => null,
  323. 'index' => 'dev_paid_receipt_search',
  324. 'type' => 'paid_receipt',
  325. ],
  326. 'inventory_batch_search' => [
  327. 'protocol' => 'http',
  328. 'servers' => [
  329. '49.233.71.60:9200'
  330. ],
  331. 'timeout' => null,
  332. 'index' => 'dev_inventory_batch_search',
  333. 'type' => 'inventory_batch',
  334. ],
  335. ],
  336. 'weixin' => [
  337. 'app' => [
  338. 'appid' => '',
  339. ],
  340. 'miniprogram' => [
  341. 'appid' => '',
  342. 'appSecret' => '',
  343. ],
  344. 'offiaccount' => [
  345. 'appid' => '',
  346. 'appSecret' => '',
  347. ],
  348. 'oplatform' => [ // 开放平台
  349. 'appid' => '',
  350. 'appSecret' => '',
  351. 'token' => '',
  352. 'encodingAesKey' => '',
  353. ],
  354. 'pay' => [
  355. 'mch_id' => '',
  356. 'apiPartnerKey' => ''
  357. ],
  358. 'service_pay' => [
  359. 'mch_id' => '',
  360. 'apiPartnerKey' => ''
  361. ]
  362. ],
  363. 'sms' => [
  364. 'registerCodeKey' => '',
  365. 'SmsSdkAppid' => '',
  366. ],
  367. 'outsideSystem' => [
  368. 'wms' => '',
  369. 'oms' => ''
  370. ],
  371. 'keruyun' => [
  372. 'appKey' => '',
  373. 'shopIdenty' => '',
  374. 'version' => '1.0',
  375. 'secretKey' => '',
  376. ],
  377. 'kuaidi100' => [
  378. 'customer' => '',
  379. 'key' => ''
  380. ],
  381. 'qiniu' => [
  382. 'accessKey' => 'BLlI0KPOS-oW4XApVaP72x-LOiKbqyC6qhRoEp3p',
  383. 'secretKey' => 'juhP3Z2-4ikUS2OifOsv9B9IHnLS24s_TGsg-vPD'
  384. ]
  385. ];