1.生成新的通道ID
select * from? fc_channel? where name like '%%'; 根據(jù)阿里云的RDS數(shù)據(jù)庫導(dǎo)出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','移動流量省網(wǎng)(陜西NNYS)','NNYSCMOrderChannel','13','20','0','0','3','HBReportServlet_01','0','1','0','0','0',null,'0','0','0',null,null);
2.給新的通道增加運(yùn)營商產(chǎn)品ID
select * fc_operators_product where name like '%***%'; 或者select * from fc_operators_product where channelId='***';? 根據(jù)阿里云的RDS數(shù)據(jù)庫導(dǎo)出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掉通道進(jìn)程后插入數(shù)據(jù)庫中執(zhí)行。
insert into `fc_channel_app`(`id`,`appId`,`channelId`,`autoStart`)
values(replace(uuid(),'-',''),'app0*','新增通道的ID','0');
重啟通道進(jìn)程ok。