增加城市识别,提交不上来,验证号码不能交费的原因

 
 
 
 增加城市识别,提交不上来,验证号码不能交费的原因
 
 
declare @province nvarchar (50)
declare @city nvarchar (50)
declare @yys int
exec [feephone]. [get_phone_address]
                 '17753123809',
                @province output,
                @city output,
                @yys OUTPUT
print @province
print @city
print @yys
 
declare @ret int
exec [feephone]. [check_can_charge]
                 '15023368230',
                 '山东',
                2 ,
                @ret OUTPUT,
                50 ,
                 null,
                 null
print @ret
select * from dbo .owner_Card_Stock a inner join
                 dbo .Setting_Yys_CanChargeMoney b on a.cardmoney =b. cardmoney and a .cardflag= b.cardflag
                 where b. yys=and b. isenable=1 and (( b.ismatch =1 and 10=b .cardmoney)
                 or( b. ismatch=0 and 10>= b.cardmoney ))
                
select ISNULL (SUM( [count]),0 ) from dbo.owner_Card_Stock a inner join
                 dbo .Setting_Yys_CanChargeMoney b on a.cardmoney =b. cardmoney and a .cardflag= b.cardflag
                 where b. yys=and b. isenable=1 and (( b.ismatch =1 and 10=b .cardmoney)
                 or( b. ismatch=0 and 10>= b.cardmoney ))
select * from dbo .Setting_Yys_CanChargeMoney  where Yys=1 and isEnable= 1
select * from dbo .owner_Card_Stock  where CardFlag='chinaunicom'
select * from dbo .owner_Card_Stock  where CardFlag='chinatelecom'
select top 100 * from dbo. Owner_Card where CardFlag ='chinatelecom' and State =0 and CardMoney=30
update dbo. Setting_Yys_CanChargeMoney  set IsMatch =1 where Yys=1 and isEnable= 1 and CardMoney<50
--delete from dbo.Setting_Yys_CanChargeMoney where ID=25
--insert into dbo.Setting_Yys_CanChargeMoney values(0,'chinaszx',10,1,1)
select * from feephone .[log_checkcancharge_fail] with (nolock) where phone ='17753123809'  order by id desc
select * from [dbo] .[view_YYS_PhoneProvince] where yys=0 and phoneprovince like '%重庆%'
select top 10 * from do_phone with (nolock) where OrderTime <'20141112'
select top 100 * from do_phone where yys=2 and WantMoney= 30 and from_channel ='phoneinterface' order by id desc
 
--号码系统增加城市识别,提交不上来
--有些渠道是必须要增加城市识别的如phoneinterface,其他的需不需要要城市识别不一定
--有的渠道 在提交号码前 会调用 [feephone].[check_can_charge] 这个存储过程,校验能不能充,有些渠道是不校验的.
select top (5000) * from do_phone with (nolock) where Province like '%' and
CityAreaCode='' and state=0 and isfinal= 0
 
--用的存储过程:
[feephone].[check_can_charge]
[feephone].[get_phone_address]
--用的表---feephone.setting_phone_seg 表
--18513173592 这个号码帮忙系统增加下识别的哈
 
select province, city from feephone .setting_phone_seg where left(phoneseg ,7)= '1851379';
select top 100 * from do_phone with (nolock) where left(Phone, 7)='1852257' and from_channel ='phoneinterface' order by id desc
 
select  province, city from feephone .setting_phone_seg where phoneseg='1851317'
select * from feephone .setting_phone_seg with (nolock) where phoneseg ='1851317'
update  feephone. setting_phone_seg  set city ='北京'  where phoneseg= '1851317'
 
--增加城市识别,提交不上来
select top (10) * from feephone. setting_phone_seg with( nolock) where phoneseg= '1852133'
select province, city from feephone .setting_phone_seg where left(phoneseg ,7)= '1852133';
--update feephone.setting_phone_seg set city='上海' where phoneseg='1852133' and city=''
 
总结如下 
总结查询号码不能提交的原因查询 
1.有些渠道提交号码前调用[feephone] .[check_can_charge] 来判断是否能充值所以可以先查看这个存储过程 
2.有些渠道提交号码前调用[feephone] .[get_phone_address]来判断号码所属地如果返回的城市为空 那么有些渠道不提交
3.查询表[feephone] .[get_phone_address]中是否有先关号段配置 对应第1、 2条)。
4.确定当时没有地区暂停 如果地区暂停提交不上来 
大家看还有补充的没有 还有, 理解我所说的没 
 
在商户接口程序首先调用[feephone].[check_can_charge]存储过称,当yys(0.1.2)去[feephone].[get_phone_address]存储过程查询号码对应的省份和城市并且将数据存储到feephone.setting_phone_seg表中:
当在表feephone.setting_phone_seg中无记录的时候,通过dll去查询真实省份城市,然后将结果存到表feephone.setting_phone_seg中。
 
这种问题:其实是我们的程序调PhoneInterface接口,返回错误信息,手机号码不能充值
遇到这种问题可以考虑是否存在城市识别问题.
号码:18518315060 百度搜了一下,没有城市识别,所以加城市识别
select from feephone .setting_phone_seg with (nolockwhere phoneseg ='1851831'
update  feephonesetting_phone_seg  set city ='北京'  where phoneseg'1851831'
 
 
 
 
 

猜你喜欢

转载自www.cnblogs.com/ComputerVip/p/11624744.html