新增通道

1.生成新的通道ID

select * from  fc_channel  where name like '%%'; 根据阿里云的RDS数据库导出insert语句。其中生成一个唯一的ID用到 replace(uuid(),'-','')方法。

例如下面的:


insert into `fc_channel`(`id`,`autoStart`,`batchSize`,`createTime`,`extended`,`isNationWide`,`name`,`protocolId`,`provinceId`,`speed`,`status`,`stopDistribution`,`yysType`,`reportMark`,`type`,`orderThreadCount`,`supportQueryReport`,`alarmMark`,`alarmMoney`,`businessPeoPhone`,`channelBanlance`,`maxFailTime`,`nowFailTime`,`researchPeoPhone`,`distributedInfo`)values(replace(uuid(),'-',''),'0','100',null,'878801865745da597ba1380baa69e43489afc86500NOhttp://llbchongzhi.esaipai.com/irecharge_flow','0','移动流量省网(陕西NNYS)','NNYSCMOrderChannel','13','20','0','0','3','HBReportServlet_01','0','1','0','0','0',null,'0','0','0',null,null);


2.给新的通道增加运营商产品ID

select * fc_operators_product where name like '%***%'; 或者select * from fc_operators_product where channelId='***';  根据阿里云的RDS数据库导出insert语句。


insert into `fc_operators_product`(`id`,`channelId`,`effType`,`effectiveDay`,`feeType`,`flowType`,`iDirect`,`name`,`pCode`,`packageSize`,`price`,`profit`,`provinceId`,`status`,`yysType`,`orderCode`,`serviceCode`,`productType`,`supportPrice`)

values('8a287693509446b60150a7092a691f15','新增通道的ID','0','1','1','1','0','陕西移动全国10M(NNYS)','SXCMCC10','10','300','0','13','0','1','110214',null,'0',null);


3.将新的通道加入到通道的web管理后台。

这一步需要先停止扫描之后,kill掉通道进程后插入数据库中执行。


insert into `fc_channel_app`(`id`,`appId`,`channelId`,`autoStart`)

values(replace(uuid(),'-',''),'app0*','新增通道的ID','0');

重启通道进程ok。


你可能感兴趣的:(新增通道)