stanley-king 1 年之前
父節點
當前提交
6e7b429014

+ 123 - 0
data/config/zy/base.ini.php

@@ -0,0 +1,123 @@
+<?php declare(strict_types=1);
+
+defined('InShopNC') or exit('Access Invalid!');
+
+define('USE_REMOTE_IMAGE',false);
+define('DEBUG_MODE',true);
+define('MOBILE_PUBLISH',false);
+define('PUSH_OMS',true);
+define('LOCAL_DEBUG',false);
+define('BONUS_EXPIRY_DATE',true);
+define('USE_BONUS_RATE',false);
+define('SERVER_TYPE','panda');
+define('CROSS_DOAMIN',false);
+define('COMPANY_NAME', 'ZY_COMPANY');
+define('ZERO_GOODS_ID', 6405);
+define('ADMIN_NAME', 'YEZI');
+
+$config = [];
+$config['base_site_url']        = SRV_HOST;
+$config['client_site_url']      = SRV_HOST;
+$config['shop_site_url'] 		= SRV_HOST.'/shop';
+$config['cms_site_url'] 		= SRV_HOST.'/cms';
+$config['microshop_site_url'] 	= SRV_HOST.'/microshop';
+$config['circle_site_url'] 		= SRV_HOST.'/circle';
+$config['admin_site_url'] 		= SRV_HOST.'/admin';
+$config['mobile_site_url'] 		= SRV_HOST.'/mobile';
+$config['wap_site_url'] 		= SRV_HOST.'/wap';
+$config['chat_site_url'] 		= SRV_HOST.'/chat';
+$config['node_site_url'] 		= 'http://127.0.0.1:8090';
+$config['delivery_site_url']    = SRV_HOST.'/delivery';
+
+$config['system_manager_phones'] = [
+    '15811535608' , '18500608333' , '18500350111' , '15136908757'
+];
+
+if(defined('USE_REMOTE_IMAGE') && USE_REMOTE_IMAGE == true) {
+    $config['upload_site_url']		= REMOTE_IMG_HOST.'/data/upload';
+    $config['resource_site_url']	= REMOTE_IMG_HOST.'/data/resource';
+} else {
+    $config['upload_site_url']		= SRV_HOST.'/data/upload';
+    $config['resource_site_url']	= SRV_HOST.'/data/resource';
+}
+
+$config['version'] 	= '201502020388';
+$config['setup_date'] 	= '2015-08-22 15:52:34';
+$config['gip'] 		= 0;
+$config['dbdriver'] 	= 'mysqli';
+$config['tablepre']	= 'lrlz_';
+
+$config['db'][1]['dbhost']       = MASTER_DBHOST;
+$config['db'][1]['dbport']       = '3306';
+$config['db'][1]['dbuser']       = 'root';
+$config['db'][1]['dbpwd']        = 'ZY@shop@951688';
+$config['db'][1]['dbname']       = 'zyshop';
+$config['db'][1]['dbcharset']    = 'UTF-8';
+
+$config['db']['slave'][0]['dbhost']     = SLAVE_DBHOST;
+$config['db']['slave'][0]['dbport']     = '3306';
+$config['db']['slave'][0]['dbuser']     = 'root';
+$config['db']['slave'][0]['dbpwd']      = 'ZY@shop@951688';
+$config['db']['slave'][0]['dbname']     = 'zyshop';
+$config['db']['slave'][0]['dbcharset']  = 'UTF-8';
+
+$config['session_expire'] 	= 3600;
+$config['lang_type'] 		= 'zh_cn';
+$config['cookie_pre'] 		= '6B0C_';
+$config['thumb']['cut_type'] = 'gd';
+$config['thumb']['impath'] = '';
+
+$config['cache']['type'] 		= 'redis';
+$config['redis']['prefix']      	= 'nc_';
+$config['redis']['master']['host']     	= MASTER_REDISHOST;
+$config['redis']['master']['port']     	= 6379;
+$config['redis']['master']['pconnect'] 	= 0;
+$config['redis']['slave']['host']     	= SLAVE_REDISHOST;
+$config['redis']['slave']['port']     	= 6379;
+$config['redis']['slave']['pconnect'] 	= 0;
+
+$config['coroutine']['redis_host'] = COROUTINE_REDISHOST;
+$config['coroutine']['redis_port'] = 6379;
+
+
+//$config['fullindexer']['open']      = false;
+//$config['fullindexer']['appname']   = '33hao';
+
+$config['debug'] 		      = false;
+$config['default_store_id'] = '1';
+//如果开始伪静态,这里设置为true
+$config['url_model'] = false;
+
+//如果店铺开启二级域名绑定的,这里填写主域名如baidu.com
+$config['subdomain_suffix'] = '';
+$config['session_type'] = 'redis';
+$config['session_save_path'] = SESSION_SAVE_PATH;
+$config['node_chat'] = true;
+
+//流量记录表数量,为1~10之间的数字,默认为3,数字设置完成后请不要轻易修改,否则可能造成流量统计功能数据错误
+$config['flowstat_tablenum'] = 3;
+$config['sms']['gwUrl'] = 'http://sdkhttp.eucp.b2m.cn/sdk/SDKService';
+$config['sms']['serialNumber'] = '';
+$config['sms']['password']     = '';
+$config['sms']['sessionKey']   = '';
+
+$config['queue']['open'] = true;
+$config['queue']['host'] = QUEUEHOST;
+$config['queue']['port'] = 6379;
+$config['cache_open']    = true;
+
+$config['return_address'] = ['address' => '上海市金山区朱吕公路7335号','name' => "大熊猫(丽帆供应链)",'tel_phone' => '17301603655','zip_code' => '201600'];
+$config['area_version'] = 5;
+$config['appjump_prefix'] = 'xyzshop://www.xyzshops.com';
+
+$config['client_setting'] = ['running' => 174,'home' => 0];
+$config['wsd_bradge_port'] = 60987;
+$config['card_key_stores'] = [6];
+
+$config['phone_life_check'] = true;
+$config['admin_layout_skin'] = 'skin_0';
+$config['fulu_mchid'] = [
+    10300,10319,10294,10305,10320,10327,10299,10216,10306,10211,10265,10304,10308,10307,10311,10309,10318,10232,10213,10202,10215,
+    10325,10260,10239,10237,10277,10251,10317,10324,10323,10322,10301,10303,10326,10280,10314,10315,10214,10256,10249,10258,10295,
+    10285,10286,10230,10282,10255,10291,10275,10254,10276,10328,10329
+];

+ 30 - 0
data/config/zy/pay.ini.php

@@ -0,0 +1,30 @@
+<?php declare(strict_types=1);
+defined('InShopNC') or exit('Access Invalid!');
+
+define('ALIPAY_PATH', BASE_DATA_PATH . '/api/alipay');
+define('ALIPAY_PARTNER', '2088121219613123');
+define('ALIPAY_SELLER_ID', 'napheir.ao@lrlz.com');
+
+//小程序支付参数。
+define('MINIPAY_WXPAY_APPID',       'wx4139a76ccb1f74b3');
+define('MINIPAY_WXPAY_APPSECRET',   '708ce8faa4ec48ba689b03e8fa7e592c');
+
+
+define('MINIPAY_WXPAY_MCHID',       '1600686690');
+define('MINIPAY_WXPAY_KEY',         '0f86a4a9b1edb51b1a8d180fa228a157');
+define('MINIPAY_WXPAY_SSLCERT_PATH', '../cert/xyz_cert.pem');
+define('MINIPAY_WXPAY_SSLKEY_PATH',  '../cert/xyz_key.pem');
+
+define('OPENWX_APPID',       'wx38f1d15c5337e89b');
+define('OPENWX_APPSECRET',   '0f62334f4196afa652d3b9d5864d88b4');
+
+
+define('WX_MCHID',       '1600686690');
+define('WX_MCHKEY',      '0f86a4a9b1edb51b1a7d110fa223a157');
+define('WX_SSLCERT_PATH', '../cert/xyz_cert.pem');
+define('WX_SSLKEY_PATH',  '../cert/xyz_key.pem');
+
+//H5端,用户身份信息授权用的,数据来自 公众号->设置->基本配置
+//SIGN_APPID 和 AUTHOR_APPID是相同的.
+define('PUB_APPID',       'wx38f1d15c5337e89b');
+define('PUB_APPSECRET',   'fd6436e7427476dbe71a6333b3b02a96');

File diff suppressed because it is too large
+ 1032 - 0
data/config/zy/refill.ini.php


+ 27 - 0
data/config/zy/special.ini.php

@@ -0,0 +1,27 @@
+<?php declare(strict_types=1);
+
+defined('InShopNC') or exit('Access Invalid!');
+
+$config['old_tabs'] = [
+    ['special_id' => 1,'name' => "测试下小雄"],
+    ['special_id' => 53,'name' => "启动页"]];
+$config['old_specials'] = [0,57];
+$config['bonus_match_goods'] = ['special_id' => 69];
+
+//fcodes_specialid 所有赠送的F码列表,banner_id
+$config['autosend_fcodes'] = ['fcodes_spid' => 283,'payconfirm_spid' => 67,'cart_spid' => 65, 'myfcode_sid' => 0,'order_present' => 70];
+$config['goods_sampler'] = ['male' => 295 ,'female' => 296];
+$config['hotlist_image'] = [1 => '1.png',2 => '2.png',3 => '3.png',4 => '4.png',5 => '5.png',6 => '6.png',7 => '7.png',8 => '8.png',9 => '9.png',10 => '10.png'];
+
+//红包价和内买价的差别,描述语
+$config['bonus_gap']   = ['have_gap' => "离员工价¥%s,还差¥%s",'no_gap' => "已达员工价¥%s,下单吧!",'earn_bonus' => 'xmmz://p.lrlz.com/block/special?title=找红包&special_id=304&isSpecial=true'];
+$config['bonus_gapex'] = ['have_gap' => "离红包价¥%s,还差¥%s",'no_gap' => "已达红包价¥%s,下单吧!",'earn_bonus' => 'xmmz://p.lrlz.com/block/special?title=找红包&special_id=304&isSpecial=true'];
+
+$config['exclude_brands'] = [43,44,138];
+$config['optional_goods'] = [];
+$config['bargain_goods']  = ['special_ids' => [303],'usable_days' => 5,'max_day_count' => 5];
+$config['ugc_banner'] = ['pub' => 269,'friend' => 0, 'mine' => 0];
+$config['bonus_detail_banner'] = ['usable' => [0,0],'expiring' => [0,0],'used' => [0,0],'expired' => [0,0],'send' => [0,0]];
+$config['special_header'] = ['guess_like' => 305];
+
+$config['special_pay_success'] = 1036;

+ 29 - 0
data/config/zy/srv.ini.php

@@ -0,0 +1,29 @@
+<?php declare(strict_types=1);
+defined('InShopNC') or exit('Access Invalid!');
+
+define('LOCAL_DOMAIN','192.168.1.200');
+
+$config['searcher']['host'] = 'searcher';
+$config['searcher']['port'] = 2000;
+
+$config['relation']['host'] = LOCAL_DOMAIN;
+$config['relation']['port'] = 5000;
+
+$config['room_srv']['host'] = LOCAL_DOMAIN;
+$config['room_srv']['ports'] = [2010];
+
+$config['room_factory']['host'] = LOCAL_DOMAIN;
+$config['room_factory']['port'] = 2002;
+
+$config['room_factory']['rooms_addr'] = [
+    ['host' => LOCAL_DOMAIN,'port' => '2010']
+//    ['host' => '192.168.0.200','port' => '2011']
+//    ['host' => '192.168.0.200','port' => '2012'],
+//    ['host' => '192.168.0.200','port' => '2013'],
+//    ['host' => '192.168.0.200','port' => '2014'],
+];
+
+//$config['access_addr'] = 'wss://panda.lrlz.com:8080';
+$config['access_addr'] = 'ws://192.168.1.200:8080';
+$config['special_rooms'] = ['shake_bonus' => 37];
+$config['room_password'] = '5566889955668899';

+ 9 - 0
data/config/zy/ugcman.config.ini

@@ -0,0 +1,9 @@
+{
+    "DB": {
+        "host": "127.0.0.1",
+        "port": 3306,
+        "name": "pandashop",
+        "user": "root",
+        "passwd": "55668899"
+    }
+}

+ 91 - 0
data/config/zy/vgoods.ini.php

@@ -0,0 +1,91 @@
+<?php
+declare(strict_types=0);
+
+$config['exclude_preferential_goods_ids'] = [6217];
+$config['card_commonid'] = ['oil' => 3449, 'phone' => 3450];
+$config['vgoods_spec_card'] = [6218 => 200, 6219 => 500, 6220 => 1000, 6227 => 100, 6221 => 100,6228 => 200,6229 => 500];
+
+$config['tips'] =  ['first_order' => '首次充值享受会员价95折',
+                    'vip_first_order' => '会员充值全场95折',
+                    'none_vip' => '点击右上角分享给好友、升级会员都能享受95折',
+                    'vip_user' => '点击右上角,分享给好友,一起省钱吧~'];
+
+$handlers = [];
+#type:虚拟商品类型,order_method下午单后的自动操作函数,
+#paid_oper 支付完成后的操作类型,auto 表示自动,manual 表示人工点击,paid_method表示点击调用的方法
+#input_params 表示输入必须带的参数。
+$mcard_params =['type' => 'member_card', 'order_method' => '', 'paid_oper' => 'auto',
+    'paid_method' => 'OnMCardPaidSuccess',
+    'input_params' => [],
+    'additional' => ['card_type' => 'year']];
+$handlers[6217] = $mcard_params;
+
+#oil card
+$oil_params = ['type' => 'oil_card',
+    'order_check' => 'OnOilCardCheck',
+    'order_method' => 'OnReserveOilCard',
+    'complete_method' => 'OnCardKeyComplete',
+    'cancel_method' => 'OnCardKeyCancel',
+    'input_params' => ['card_no', 'card_type', 'phone_no']];
+
+$handlers[6218] = $oil_params;
+$handlers[6219] = $oil_params;
+$handlers[6220] = $oil_params;
+$handlers[6227] = $oil_params;
+
+#phone card
+$phone_card_prams = ['type' => 'phone_card',
+    'order_check' => 'OnPhoneCardCheck',
+    'order_method' => 'OnReservePhoneCard',
+    'complete_method' => 'OnCardKeyComplete',
+    'cancel_method' => 'OnCardKeyCancel',
+    'input_params' => ['card_no', 'card_type']];
+
+$handlers[6221] = $phone_card_prams;
+$handlers[6228] = $phone_card_prams;
+$handlers[6229] = $phone_card_prams;
+
+$config['vgoods_handlers'] = $handlers;
+
+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
+//[6218 => 200, 6219 => 500, 6220 => 1000, 6227 => 100, 6221 => 100]
+//6220 话费 amount = 100
+$share_policy[6221] = [
+    ['num' => 1,  'discount' => 4,'price' => 96]
+];
+$share_policy[6227] = [
+    ['num' => 1,  'discount' => 4,'price' => 96]
+];
+
+//6220 话费 amount = 200
+$share_policy[6218] = [
+    ['num' => 2,  'discount' => 8,  'price' => 192],
+    ['num' => 1,  'discount' => 4,  'price'  => 196]
+];
+$share_policy[6228] = [
+    ['num' => 2,  'discount' => 8,  'price' => 192],
+    ['num' => 1,  'discount' => 4,  'price'  => 196]
+];
+
+//6220 油费 amount = 500
+$share_policy[6219] = [
+    ['num' => 3,  'discount' => 20,  'price' => 480],
+    ['num' => 2,  'discount' => 15,  'price' => 485],
+    ['num' => 1,  'discount' => 10,  'price' => 490]
+];
+$share_policy[6229] = [
+    ['num' => 3,  'discount' => 20,  'price' => 480],
+    ['num' => 2,  'discount' => 15,  'price' => 485],
+    ['num' => 1,  'discount' => 10,  'price' => 490]
+];
+
+//6220 油费 amount = 1000
+$share_policy[6220] = [
+    ['num' => 5,  'discount' => 40,  'price' => 960],
+    ['num' => 4,  'discount' => 30,  'price' => 970],
+    ['num' => 3,  'discount' => 25,  'price' => 975],
+    ['num' => 2,  'discount' => 20,  'price' => 980],
+    ['num' => 1,  'discount' => 15,  'price' => 985]
+];
+
+$config['goods_share_policy'] = $share_policy;

+ 14 - 0
data/config/zy/webacc.config.ini

@@ -0,0 +1,14 @@
+{
+    "room_addrs":[
+            { "host":"192.168.0.200","port":2010}
+            ],
+    "factory_addr": { "host":"192.168.0.200","port":2002},
+    "acc_addr":{"host":"0.0.0.0", "port":8080},
+    "DB": {
+        "host": "127.0.0.1",
+        "port": 3306,
+        "name": "pandashop",
+        "user": "root",
+        "passwd": "55668899"
+    }
+}