Config_local.php 12 KB

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