Config.php 12 KB

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