whiteList

移動開發平台提供了(le/liǎo)Web本地(dì / de)化的(de)整體技術解決方案和(hé / huò)銀行經驗, 在(zài)此基礎上(shàng)進行web網絡請求的(de)白名單限制, 自動實現過濾功能,避免出(chū)現涉黃、涉恐信息。 白名單功能支持開發者自定義網絡請求的(de)白名單, 更新的(de)的(de)白名單信息可通過該服務到(dào)達客戶端, 進行客戶端本地(dì / de)數據的(de)過濾。

接口說(shuō)明

接口名稱:whiteList

Dubbo調用:msWhiteListService

接口描述:客戶端web容器用于(yú)過濾的(de)Web請求白名單列表

入參

header通用參數

參考header通用參數

業務參數

字段名稱 字段類型 字段描述 是(shì)否必須
updateTime String 最近更新時(shí)間戳
custId String 客戶ID 是(shì)

出(chū)參

字段名稱 字段類型 字段描述 是(shì)否必須
updateTime String 最近更新時(shí)間戳 是(shì)
whiteLists List item 是(shì)

item

字段名稱 字段類型 字段描述 是(shì)否必須
IS_ACTIVE String 0 非活躍 1 活躍
SCHEME String
SCHEME String
SCHEME String
url String
ISSUED_BY_CNAME
ISSUED_BY_ONAME
ISSUED_TO_CNAME
ISSUED_TO_ONAME

樣例

dubbo協議接入

請求url

http://localhost:9102/gw/hk_e_app/msWhiteListService.do

請求數據格式

{   
    "request": {
        "header": {
            "appId": "1",
            "appVersion": "4.41",
            "ffVersion": "4.0",
            "transId": "whiteList",
            "appExt": "1",
            "custType": "100",
            "signedMicroFlag": "0",
            "net": {
                 "ip": "127.0.0.1",
                 "netType": "WIFI_oa-test",
                 "isp": "中国移動",
                 "ssid": "oa-test",
                  "lac": "4203",
                  "cid": "10732931"
             },
            "device": {
                  "osType": "03",
                  "osVersion": "8.0.0",
                  "brand": "samsung",
                  "model": "SM-G9500",
                  "uuid": "2e2bc2402301ea3e1e021362dd6b7a1e",
                  "imei": "357052091333047",
                  "mac": "00:9D:6B:32:00:24",
                  "nfc": "1",
                  "isRoot": "0",
                  "imsi": "8986003915187a258429"
            },
            "reqSeq": "0"
     },
     "body": {
          "updateTime": "00000000000000",
          "custId":""
       }
   }
}

http協議接入

請求url

http://localhost:8080/ffpaas/webplugin/whiteLists.json

請求數據格式

{    
    "request": {
        "header": {
            "appId": "1",
            "appVersion": "4.41",
            "ffVersion": "4.0",
            "transId": "whiteList",
            "appExt": "1",
            "custType": "100",
            "signedMicroFlag": "0",
            "net": {
                 "ip": "127.0.0.1",
                 "netType": "WIFI_oa-test",
                 "isp": "中国移動",
                 "ssid": "oa-test",
                  "lac": "4203",
                  "cid": "10732931"
             },
            "device": {
                  "osType": "03",
                  "osVersion": "8.0.0",
                  "brand": "samsung",
                  "model": "SM-G9500",
                  "uuid": "2e2bc2402301ea3e1e021362dd6b7a1e",
                  "imei": "357052091333047",
                  "mac": "00:9D:6B:32:00:24",
                  "nfc": "1",
                  "isRoot": "0",
                  "imsi": "8986003915187a258429"
            },
            "reqSeq": "0"
     },
     "body": {
          "updateTime": "00000000000000",
          "custId":""
       }
   }
}

dsdl配置

節點配置

  • 創建服務節點, 節點名稱爲(wéi / wèi)msWhiteListService
  • 添加節點配置信息
msWhiteListService$applicationName,true

說(shuō)明:

applicationName修改爲(wéi / wèi)應用

xml參數配置

  • 創建節點,節點名稱爲(wéi / wèi)interface-mapping
  • 添加配置參數信息,如下
<?xml version="1.0" encoding="UTF-8"?>

<interface name="msWhiteListService" description="手機銀行白名單" auth="false">
    <configs>
        <config key="accessLog" value="false"/>
        <config key="transDataRecordMode" value="on"/>
<config key="productId" value="ECommon"/>
    </configs>
    <input>
        <param name="updateTime" description="最近更新時(shí)間戳" type="String"/>
    </input>
    <output>
        <param name="returnCode" description="處理結果" type="Map" optional="false">
            <param name="code" description="返回碼" type="String" optional="false"/>
            <param name="message" description="返回信息" type="String"/>
            <param name="type" description="處理結果類型" type="String" optional="false"/>
        </param>
        <param name="updateTime" type="String"/>
        <param name="whiteLists" type="List"/>
    </output>
</interface>
Copyright © 屯昌單支科技有限公司 2019 all right reserved,powered by Gitbook聯系方式: wanglihang@mskj.com
修訂時(shí)間: 2019-08-02 16:19:33

results matching ""

    No results matching ""