国产精品,日韩av,hdsexvideos中国少妇,xxxxx性bbbbb欧美熟妇,波多野结衣乳巨码无在线,国产成人亚洲精品乱码

自定義函數(shù)-Fx.location

2020-12-28 17:16:17 1185 本站

      Fx.location:和查詢歸屬地有關(guān)的API

1、查詢單個(gè)號碼歸屬地-findByMobile

     定義:Fx.location.findByMobile(<String mobile>)

     data返回值類型:Map

     例:

def(Boolean error,Map result,String errroMessage) = Fx.location.findByMobile("11111111111")
//返回值新增兩個(gè)參數(shù)
//province_code  String 類型,省份的地區(qū)碼
//city_code String 類型,市的地區(qū)碼

2、根據(jù)地區(qū)碼,查詢地區(qū)省市中文-findCountryAreaLabel

     定義:Fx.location.findCountryAreaLabel(<String code>,<String type>)

參數(shù)說明
code地區(qū)碼
typecountry:國家 province:省 city:市 district:區(qū)

     data返回值類型:String(返回國家省市區(qū)的名字,查詢不到返回空)

     例:

String label = Fx.location.findCountryAreaLabel("249","province")

3、根據(jù)地區(qū)省市中文,查詢地區(qū)碼-findCountryAreaCode

     定義:Fx.location.findCountryAreaCode(<String label>,<String type>)

參數(shù)說明
code地區(qū)省市中文
typecountry:國家 province:省 city:市 district:區(qū)

     data返回值類型:String(返回國家省市區(qū)的地區(qū)碼,查詢不到返回空)

     例:

String provinceCode = Fx.location.findCountryAreaCode("黑龍江","province")



部分內(nèi)容來源于互聯(lián)網(wǎng),如有侵權(quán),請聯(lián)系客服刪除處理。
在線咨詢 撥打電話