config.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <?php
  2. defined('IN_IA') or exit('Access Denied');
  3. $config = array();
  4. // -------------------------- CONFIG COOKIE --------------------------- //
  5. $config['cookie']['pre'] = '222a_';
  6. $config['cookie']['domain'] = '';
  7. $config['cookie']['path'] = '/';
  8. // -------------------------- CONFIG SETTING --------------------------- //
  9. $config['setting']['charset'] = 'utf-8';
  10. $config['setting']['cache'] = 'redis';// memcache redis mysql
  11. $config['setting']['timezone'] = 'Asia/Shanghai';
  12. $config['setting']['memory_limit'] = '512M';
  13. $config['setting']['filemode'] = 0644;
  14. $config['setting']['authkey'] = 'a09fe620';
  15. $config['setting']['founder'] = '1';
  16. $config['setting']['development'] = 0;
  17. $config['setting']['referrer'] = 0;
  18. $config['setting']['https'] = 1;
  19. // -------------------------- CONFIG UPLOAD --------------------------- //
  20. $config['upload']['attachdir'] = 'attachment';
  21. $config['upload']['image']['extentions'] = array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'gif');
  22. $config['upload']['image']['limit'] = 50000;
  23. $config['upload']['audio']['extentions'] = array('mp3');
  24. $config['upload']['audio']['limit'] = 50000;
  25. $config['upload']['file']['extentions'] = array('pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'mp4');
  26. $config['upload']['file']['limit'] = 100000;
  27. // -------------------------- CONFIG DATABASE --------------------------- //
  28. $config['db']['master']['host'] = '127.0.0.1';
  29. $config['db']['master']['username'] = 'root';
  30. $config['db']['master']['password'] = 'root';
  31. $config['db']['master']['database'] = 'superdesk_welfare';
  32. $config['db']['master']['port'] = '3306';
  33. $config['db']['master']['charset'] = 'utf8';
  34. $config['db']['master']['pconnect'] = 0;
  35. $config['db']['master']['tablepre'] = 'ims_';
  36. // -------------------------- CONFIG MEMCACHE --------------------------- //
  37. $config['setting']['memcache']['server'] = '127.0.0.1';
  38. $config['setting']['memcache']['port'] = 11211;
  39. $config['setting']['memcache']['pconnect'] = 1;
  40. $config['setting']['memcache']['timeout'] = 30;
  41. $config['setting']['memcache']['session'] = 1;
  42. // -------------------------- CONFIG REDIS --------------------------- //
  43. $config['setting']['redis']['server'] = '127.0.0.1'; //redis的地址
  44. $config['setting']['redis']['port'] = 6379; //端口
  45. $config['setting']['redis']['pconnect'] = 0; //是否持久连接
  46. $config['setting']['redis']['requirepass'] = ''; //密码
  47. $config['setting']['redis']['timeout'] = 1; //超时时间
  48. $config['setting']['redis']['auth'] = ''; //auth
  49. // -------------------------- CONFIG KAFKA --------------------------- //
  50. $config['setting']['runKafka'] = 0; //pdo中是否运行kafka
  51. $config['setting']['kafka']['enable'] = 0; //pdo中是否运行kafka
  52. $config['setting']['kafka']['groupId'] = '';
  53. $config['setting']['kafka']['topics'] = '';
  54. $config['setting']['kafka']['metadataBrokerList'] = [];
  55. //推送下单订单
  56. $config['kafka']['unified_order']['enable'] = 1; //pdo中是否运行kafka
  57. $config['kafka']['unified_order']['groupId'] = 'shop_group';
  58. $config['kafka']['unified_order']['ip'] = '172.18.223.211:9093,172.18.223.206:9093';
  59. $config['kafka']['unified_order']['topics'] = 'flsc_order';
  60. $config['kafka']['unified_order']['metadataBrokerList'] = [];
  61. //推送售后订单
  62. $config['kafka']['unified_refund']['enable'] = 1; //pdo中是否运行kafka
  63. $config['kafka']['unified_refund']['groupId'] = 'shop_group';
  64. $config['kafka']['unified_refund']['ip'] = '172.18.223.211:9093,172.18.223.206:9093';
  65. $config['kafka']['unified_refund']['topics'] = 'flsc_refund';
  66. $config['kafka']['unified_refund']['metadataBrokerList'] = [];
  67. //推送供应商-侨城汇
  68. $config['kafka']['mergeReceiveMerchant']['enable'] = 1; //pdo中是否运行kafka
  69. $config['kafka']['mergeReceiveMerchant']['groupId'] = 'shop_group';
  70. $config['kafka']['mergeReceiveMerchant']['ip'] = '172.18.35.57:9092';
  71. $config['kafka']['mergeReceiveMerchant']['topics'] = 'superdesk-mall-receive_merchant';
  72. $config['kafka']['mergeReceiveMerchant']['metadataBrokerList'] = [];
  73. //推送企业信息-侨城汇
  74. $config['kafka']['mergeReceiveVirtualarchitecture']['enable'] = 1; //pdo中是否运行kafka
  75. $config['kafka']['mergeReceiveVirtualarchitecture']['groupId'] = 'shop_group';
  76. $config['kafka']['mergeReceiveVirtualarchitecture']['ip'] = '172.18.35.57:9092';
  77. $config['kafka']['mergeReceiveVirtualarchitecture']['topics'] = 'superdesk-mall-receive_merchant';
  78. $config['kafka']['mergeReceiveVirtualarchitecture']['metadataBrokerList'] = [];
  79. //服务之窗单点登录
  80. //$config['super_cloud_token'] = 'http://superdesk.avic-s.com/super_cloud/api/organisation/wechat/front/user/getVirAndUserInfo';
  81. $config['super_cloud_token'] = 'http://wx.palmnest.com/super_cloud/api/organisation/wechat/front/user/getVirAndUserInfo';
  82. //京东价格毛利
  83. $config['jd_price']['high'] = 1.20;
  84. $config['jd_price']['middle'] = 1.16;
  85. $config['jd_price']['low'] = 1.13;
  86. //服务之窗支付项目ID
  87. $config['bw_pay']['orgId'] = [
  88. 0 => 927,
  89. 1 => 927,
  90. 9 => 888
  91. ];
  92. //运营商商品推送
  93. $config['operators_goods']['url'] = 'http://api.welfare.octlife.cn/api/shop/';
  94. //到家汇商户ID
  95. $config['merchid']['daojiahui'] = 13;
  96. //到家汇订单延时发货
  97. $config['djh_order']['send_time_wait'] = 100;
  98. //京东商户ID
  99. $config['merchid']['jd'] = 8;
  100. //京东订单延时发货
  101. $config['jd_order']['send_time_wait'] = 1200;
  102. //严选-侨城汇
  103. $config['yx']['appKey'] = '1e11a30170f64be985c6799e05e84a04';
  104. $config['yx']['appSecret'] = '5760880383ee4604ac405c8866d84b22';
  105. //新前台优选商户ID-对接供应商API 20210104
  106. $config['merchid']['qtyx'] = 9;
  107. //新前台优选接口API
  108. $config['qtyx_url'] = 'http://sc.api.test.superdesk.cn/';
  109. $config['qtyx']['app_id'] = 'T1zw3boMm7RJ';
  110. $config['qtyx']['app_secret'] = 'b26avLcwDdPInYf8';
  111. //蜂助手
  112. $config['fzs_url'] = 'https://s.phone580.com/center/hwcenter/qhcjqt67311.html#/index?';
  113. $config['fzs_url_arr'] = [
  114. 1 => 'https://s.phone580.com/center/hwcenter/qhcjqt67313.html',
  115. 2 => 'https://s.phone580.com/center/hwcenter/qhcjqt67311.html#/detail?id=Cae7PZSBLd5tR1uSrpuVeSb2nc63dOMV&tname=%E7%BE%8E%E5%9B%A2%E5%A4%96%E5%8D%96%E7%BA%A2%E5%8C%85',
  116. 3 => 'https://s.phone580.com/center/hwcenter/qhcjqt67313.html',
  117. 4 => 'https://promotion.phone580.com/activity/cjqt-jfdh-prod',
  118. ];
  119. //线下支付 运营商ID
  120. $config['systempay']['operators_id'] = 2;
  121. //云闪付
  122. $config['cloud_pay']['operators_id'] = 2;
  123. //京东满99包邮
  124. $config['jd_order']['dispatch_price_limit'] = 99;
  125. //企业管理员充值额度
  126. $config['member_enterprise_recharge']['member_max_price'] = 20000; //用户上限
  127. $config['member_enterprise_recharge']['enterprise_max_price'] = 0; //企业上限
  128. //分配给楼闪送APPID、key
  129. $config['app_id'] = '10001';
  130. $config['app_key'] = '91e3a3b4dd4da6f833425fae71efe6a1';
  131. //过滤掉的路由
  132. $config['filter_routes'] = [
  133. 'payor.pay'
  134. ];
  135. //运营商ID
  136. $config['operators_id'] = [
  137. 'xxjx' => 23, //小新菁选
  138. ];
  139. //运营商指定商户名
  140. $config['operators_name'] = [
  141. 'xxjx' => '前台优选', //小新菁选
  142. ];
  143. //服务之窗充值
  144. $config['recharge'] = [
  145. 'appid' => '10001',
  146. 'key' => '91e3a3b4dd4da6f833425fae71efe6a1',
  147. 'max_money' => 500,
  148. 'min_money' => 0,
  149. 'ip' => [
  150. '127.0.0.1',
  151. '112.74.48.214',
  152. ]
  153. ];
  154. $config['login_type'] = [
  155. 23 => [
  156. 'wechat' => 1,
  157. 'password' => 1,
  158. ],
  159. 24 => [
  160. 'wechat' => 1,
  161. 'password' => 1,
  162. ],
  163. 26 => [
  164. 'wechat' => 1,
  165. 'password' => 1,
  166. ],
  167. 31 => [
  168. 'wechat' => 1,
  169. 'password' => 1,
  170. ],
  171. 37 => [
  172. 'wechat' => 1,
  173. 'password' => 1,
  174. ],
  175. 42 => [
  176. 'wechat' => 1,
  177. 'password' => 1,
  178. ],
  179. 20 => [
  180. 'wechat' => 1,
  181. 'password' => 1,
  182. ],
  183. 43 => [
  184. 'wechat' => 1,
  185. 'password' => 1,
  186. ],
  187. 45 => [
  188. 'wechat' => 1,
  189. 'password' => 1,
  190. ],
  191. 49 => [
  192. 'wechat' => 1,
  193. 'password' => 1,
  194. ],
  195. 50 => [
  196. 'wechat' => 1,
  197. 'password' => 1,
  198. ],
  199. 51 => [
  200. 'wechat' => 1,
  201. 'password' => 1,
  202. ],
  203. 53 => [
  204. 'wechat' => 1,
  205. 'password' => 1,
  206. ],
  207. ];
  208. $config['seckill_migrate'] = true;
  209. $config['sms_id'] = [
  210. 'password' => 100,
  211. 'check' => 200
  212. ];
  213. $config['card'] = [
  214. '23' => 'https://fm.superdesk.cn/xxjx/card/',
  215. '26' => 'https://fm.superdesk.cn/xfyx/card/',
  216. '31' => 'https://fm.superdesk.cn/gjlg/card/',
  217. '37' => 'https://fm.superdesk.cn/xxy/card/',
  218. '42' => 'https://fm.superdesk.cn/fh/card/',
  219. '20' => 'https://fm2.superdesk.cn/flc/card/',
  220. '43' => 'https://fm.superdesk.cn/newlegou/card/',
  221. '45' => 'https://fm.superdesk.cn/huayuehui/card/',
  222. '49' => 'https://fm.superdesk.cn/xjyg/card/',
  223. '50' => 'https://fm.superdesk.cn/fd/card/',
  224. '51' => 'https://fm.superdesk.cn/fhy/card/',
  225. '53' => 'https://fm.superdesk.cn/rxyx/card/',
  226. ];
  227. $config['sms_sign'] = [
  228. '24' => '津辉优选',
  229. '26' => '小富源选',
  230. '31' => '国基乐购',
  231. // '49' => '超级前台',
  232. ];
  233. //屏蔽关注公众号的运营商
  234. $config['filter_mp_follow'] = [23, 24, 26, 31, 37, 42, 20, 43, 45, 49, 50, 51, 53];
  235. //指定的运营商需用他自己的小程序appid、key等信息
  236. $config['xcx_info_replace'] = [23, 24, 26, 31, 37];
  237. //后台创建用户不发短信的运营商
  238. $config['filter_send_msg'] = [24];
  239. //小程序消息推送配置 start
  240. $config['wx_message_token'] = 'ee35f8118cd3fe42c4a691f1bc5dc185';
  241. $config['wx_message_EncodingAESKey'] = 'ijT18AwjJqjNJRqPseJMyOUcinnAIL6LEUM4Ojhjlbn';
  242. //小程序消息推送配置 end
  243. //微信授权手机号登录,如该手机号未注册,自动分配当前运营商及运营商下的默认企业
  244. $config['default_operators_id'] = 6;
  245. //饭卡支付 运营商ID
  246. $config['meal_pay']['operators_id'] = 26;
  247. //饭卡支付扩展 运营商ID
  248. $config['meal_pay_2']['operators_id'] = [40, 42,20];
  249. //给服务之窗直接支付的服务器 IP
  250. $config['fwzc_pay_server_ip'] = [
  251. ];
  252. //给服务之窗直接支付的用户token过去时间,单位:秒
  253. $config['fwzc_pay_token_ttl'] = 2 * 60 * 60;
  254. //通用积分批次
  255. $config['common_batch'] = 'JF19700000000000000';
  256. //请求服务之窗获取云卡 token
  257. $config['cloud_card_token'] = [
  258. 'url' => 'http://wx.palmnest.com/super_cloud/api/opendata/cloud_card/getTokenAndSetIfAbsent',
  259. 'appKey' => 'fwzcFiCI7Ulg854dOufU',
  260. 'appSecret' => 'b8c4d9d706c71a08e2230d30f4b713720cb1be0f'
  261. ];
  262. //使用 es 搜索
  263. $config['use_es'] = 0;
  264. //多积分新老系统临时跳转兼容
  265. $config['redirect'] = [
  266. 'state' => 0,
  267. 'domain' => 'https://fmt.superdesk.cn/',
  268. 'operators_id' => [6],
  269. ];
  270. //华侨城酒店配置
  271. $config['hotel'] = [
  272. 'operators_id' => 45,
  273. 'domain' => 'https://crs.octhotels.cn',
  274. 'api_domain' => 'https://crsapi.octhotels.cn',
  275. 'client_id' => 'a804b2701025479898c8b6ca3c20e123',
  276. 'client_secret' => '24f616f63ba449cab4c9695ec9f12dd1',
  277. 'grant_type' => 'client_credentials',
  278. 'scope' => 'LPS_Web_API',
  279. ];
  280. //到家汇商户id
  281. $config['merchid']['daojiahui'] = 13;
  282. //智臻商户id
  283. $config['merchid']['zzyc'] = 102;
  284. //支付类型扩展
  285. $config['paytype_extend'] = [
  286. 31 => '积分兑换', //华侨城酒店积分兑换
  287. 25 => '云闪付',
  288. 26 => '饭卡支付',
  289. 40 => '餐卡支付',
  290. 41 => '餐卡组合支付',
  291. ];
  292. //湘江集团餐卡支付运营id
  293. $config['xj_meal_pay']['operators_id'] = [49];
  294. //小程序端我的钱包隐藏余额
  295. $config['hide_balance']['operators_id'] = [26, 49];
  296. //小程序端我的钱包隐藏积分
  297. $config['hide_credit']['operators_id'] = [49];
  298. //默认验证码
  299. $config['default_verifycode'] = 99999;
  300. //默认密码
  301. $config['default_password'] = 'whoisyourdaddy';
  302. //山姆接口配置信息
  303. $config['sam'] = [
  304. 'domain' => 'http://walintgwdev.swiftpass.top/gateway',
  305. 'channel_id' => 200010170,
  306. 'secret' => '43c08296d0ca4862be163e932dd47e23',
  307. 'default_province' => '1932', //广东
  308. 'default_city' => '1956', //深圳市
  309. 'default_county' => '1958', //福田区
  310. ];
  311. //山姆商户id
  312. $config['merchid']['sam'] = 14;
  313. //小程序售后界面类型
  314. $config['refund_ui'] = [
  315. $config['merchid']['sam'] => 2, //山姆的比较特殊,需要独立处理
  316. ];
  317. //售后类型,1:普通,2:山姆新增
  318. $config['refund_option'] = [
  319. 1 => [
  320. 3 => '退货退款', //确保输出给前端时带上key,所以把这个调前面,不从0开始按顺序排列
  321. 0 => '退货',
  322. 1 => '换货',
  323. 2 => '维修',
  324. ],
  325. 2 => [
  326. 3 => '退货退款',
  327. ],
  328. ];
  329. //售后原因
  330. $config['refund_reason'] = [
  331. 1 => [
  332. '质量不好,存在功能缺陷',
  333. '使用不方便,存在功能缺陷',
  334. '外观存在瑕疵',
  335. '尺寸大小不合适',
  336. ],
  337. 2 => [
  338. '多拍/错拍/不喜欢/不想要',
  339. '发错货/少发货/空包裹',
  340. '收到商品有划痕/破损/漏液/空包囊',
  341. '超过2个工作日未发货/配送延迟',
  342. '商品是假货',
  343. '商品不新鲜/长霉/过期/变质',
  344. '商品褪色/掉色/缩水/脱胶',
  345. '商品材质/外观等参数与描述不符合',
  346. '商品部件/屏幕/配件等有问题',
  347. '其他',
  348. ],
  349. ];
  350. //经营看板
  351. $config['business_board'] = [
  352. 49 => 'https://app.powerbi.com/view?r=eyJrIjoiZDlkNWY2YTYtMjhkNi00NmEzLThmMzQtYmZjODA1ZDA4NzRjIiwidCI6IjZmMGJiNzJmLTUzNzctNGRkZi05MzZhLWI2YzcyYmYyMWFlMiIsImMiOjF9'
  353. ];
  354. //市民云配置 测试环境地址
  355. $config['citizen_cloud_url'] = 'https://cdpre.tfsmy.com/';
  356. $config['citizen_cloud_clientId'] = 'yT5vSroopcQn';
  357. $config['citizen_cloud_clientSecret'] = 'f5634e12672c485b81oapicfb758f6RRYY99788';
  358. $config['citizen_cloud_enterprise'] = 44;
  359. $config['citizen_cloud_operator'] = 6;