Config.php 12 KB

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