| | |
| | | userPassword = AuthenticationFactory.passwdMd5(userPassword); |
| | | paramObj.put("password", userPassword); |
| | | |
| | | if(paramObj.containsKey("openId") && !"-1".equals(paramObj.getString("openId"))){ |
| | | JSONArray userAttr = new JSONArray(); |
| | | JSONObject userAttrObj = new JSONObject(); |
| | | userAttrObj.put("attrId", "-1"); |
| | | userAttrObj.put("specCd", "100201911001"); |
| | | userAttrObj.put("value", paramObj.getString("openId")); |
| | | userAttr.add(userAttrObj); |
| | | paramObj.put("businessUserAttr", userAttr); |
| | | } |
| | | |
| | | business.getJSONObject(CommonConstant.HTTP_BUSINESS_DATAS).put("businessUser", paramObj); |
| | | |
| | | return business; |
| | |
| | | String paramIn = dataFlowContext.getReqData(); |
| | | JSONObject paramObj = JSONObject.parseObject(paramIn); |
| | | paramObj.put("userId", GenerateCodeFactory.getUserId()); |
| | | paramObj.put("openId", "-1"); |
| | | if(reqJson.containsKey("openId")){ |
| | | paramObj.put("openId", reqJson.getString("openId")); |
| | | }else { |
| | | paramObj.put("openId", "-1"); |
| | | } |
| | | HttpHeaders header = new HttpHeaders(); |
| | | dataFlowContext.getRequestCurrentHeaders().put(CommonConstant.HTTP_ORDER_TYPE_CD, "D"); |
| | | JSONArray businesses = new JSONArray(); |
| | |
| | | throw new IllegalArgumentException("根绝openId 查询用户信息异常" + openId); |
| | | } |
| | | userResult = JSONObject.parseObject(responseEntity.getBody());*/ |
| | | paramOut.put("result", 401); |
| | | paramOut.put("openId", openId); |
| | | paramOut.put("msg", "还没有注册请先注册"); |
| | | responseEntity = new ResponseEntity<String>(paramOut.toJSONString(), HttpStatus.UNAUTHORIZED); |
| | | |