wuxw7
2018-11-25 db5ffd82e14bc70acc3827656eb52bad004b250b
用户注册 userId 刷入
1个文件已修改
16 ■■■■ 已修改文件
Api/src/main/java/com/java110/api/listener/UserRegisterServiceListener.java 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Api/src/main/java/com/java110/api/listener/UserRegisterServiceListener.java
@@ -72,8 +72,8 @@
        JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
        business.put(CommonConstant.HTTP_BUSINESS_SERVICE_CODE,ServiceCodeConstant.SERVICE_CODE_SAVE_USER_INFO);
        business.put(CommonConstant.HTTP_BUSINESS_SERVICE_NAME,"用户注册");
        business.put(CommonConstant.HTTP_USER_ID,"-1");
        business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessUser",JSONObject.parseObject(paramIn));
        business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessUser",refreshParamIn(paramIn));
        HttpHeaders header = new HttpHeaders();
        dataFlowContext.getRequestCurrentHeaders().put(CommonConstant.HTTP_USER_ID,"-1");
        dataFlowContext.getRequestCurrentHeaders().put(CommonConstant.HTTP_ORDER_TYPE_CD,"D");
@@ -84,6 +84,18 @@
        super.doRequest(dataFlowContext, service, httpEntity);
    }
    /**
     * 对请求报文处理
     * @param paramIn
     * @return
     */
    private JSONObject refreshParamIn(String paramIn){
        JSONObject paramObj = JSONObject.parseObject(paramIn);
        paramObj.put(CommonConstant.HTTP_USER_ID,"-1");
        return paramObj;
    }