whiteList

移动开发平台提供了Web本地化的整体技术解决方案和银行经验, 在此基础上进行web网络请求的白名单限制, 自动实现过滤功能,避免出现涉黄、涉恐信息。 白名单功能支持开发者自定义网络请求的白名单, 更新的的白名单信息可通过该服务到达客户端, 进行客户端本地数据的过滤。

接口说明

接口名称:whiteList

Dubbo调用:msWhiteListService

接口描述:客户端web容器用于过滤的Web请求白名单列表

入参

header通用参数

参考header通用参数

业务参数

字段名称 字段类型 字段描述 是否必须
updateTime String 最近更新时间戳
custId String 客户ID

出参

字段名称 字段类型 字段描述 是否必须
updateTime String 最近更新时间戳
whiteLists List item

item

字段名称 字段类型 字段描述 是否必须
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配置

节点配置

  • 创建服务节点, 节点名称为msWhiteListService
  • 添加节点配置信息
msWhiteListService$applicationName,true

说明:

applicationName修改为应用

xml参数配置

  • 创建节点,节点名称为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="最近更新时间戳" 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
修订时间: 2019-08-02 16:19:33

results matching ""

    No results matching ""