From 3138c292bcce399c22580a9ba6a14d691bd69ff3 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 10 二月 2019 20:12:12 +0800
Subject: [PATCH] 修改 用户注册 用户停用 用户启用等功能

---
 Api/src/main/java/com/java110/api/listener/users/DisableStaffServiceListener.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Api/src/main/java/com/java110/api/listener/users/DisableStaffServiceListener.java b/Api/src/main/java/com/java110/api/listener/users/DisableStaffServiceListener.java
index df64341..c11e276 100644
--- a/Api/src/main/java/com/java110/api/listener/users/DisableStaffServiceListener.java
+++ b/Api/src/main/java/com/java110/api/listener/users/DisableStaffServiceListener.java
@@ -2,6 +2,7 @@
 
 import com.alibaba.fastjson.JSONObject;
 import com.java110.api.listener.AbstractServiceApiDataFlowListener;
+import com.java110.common.constant.BusinessTypeConstant;
 import com.java110.common.constant.CommonConstant;
 import com.java110.common.constant.ServiceCodeConstant;
 import com.java110.common.util.Assert;
@@ -55,14 +56,18 @@
         Assert.jsonObjectHaveKey(paramIn,"userId","褰撳墠璇锋眰鎶ユ枃涓湭鍖呭惈userId鑺傜偣");
 
         JSONObject business = JSONObject.parseObject("{\"datas\":{}}");
-        business.put(CommonConstant.HTTP_BUSINESS_SERVICE_CODE,ServiceCodeConstant.SERVICE_CODE_REMOVE_USER_INFO);
-        business.put(CommonConstant.HTTP_BUSINESS_SERVICE_NAME,"鍋滅敤鐢ㄦ埛");
+        business.put(CommonConstant.HTTP_BUSINESS_TYPE_CD, BusinessTypeConstant.BUSINESS_TYPE_REMOVE_USER_INFO);
+        business.put(CommonConstant.HTTP_SEQ,1);
+        business.put(CommonConstant.HTTP_INVOKE_MODEL,CommonConstant.HTTP_INVOKE_MODEL_S);
 
         business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessUser",refreshParamIn(paramIn));
         HttpHeaders header = new HttpHeaders();
         dataFlowContext.getRequestCurrentHeaders().put(CommonConstant.HTTP_ORDER_TYPE_CD,"D");
         String paramInObj = super.restToCenterProtocol(business,dataFlowContext.getRequestCurrentHeaders()).toJSONString();
 
+        //灏� rest header 淇℃伅浼犻�掑埌涓嬪眰鏈嶅姟涓幓
+        super.freshHttpHeader(header,dataFlowContext.getRequestCurrentHeaders());
+
         HttpEntity<String> httpEntity = new HttpEntity<String>(paramInObj, header);
         //http://user-service/test/sayHello
         super.doRequest(dataFlowContext, service, httpEntity);

--
Gitblit v1.8.0