Commit 4bd41912 authored by 杨阳's avatar 杨阳

扫码默认值逻辑调整

parent 550a5a12
......@@ -105,12 +105,8 @@ public class PeasantHouseholdWxController extends BaseController {
@RequestMapping (value = "/login", method = RequestMethod.POST)
@ApiOperation (httpMethod = "POST", value = "微信授权登陆", notes = "微信授权登陆")
public ResponseModel<PeasantHouseholdWxDto> wxUserLogin(@ApiParam @RequestBody MobileLoginParamDto mobileLoginParam) {
if (StringUtils.isBlank(defaultUserId)) {
if (StringUtils.isBlank(mobileLoginParam.getAmosUserId())) {
throw new BadRequest("二维码参数userId为空");
}
} else {
// 配置了测试用的userId 则覆盖扫码的userId
if (StringUtils.isBlank(mobileLoginParam.getAmosUserId())) {
// 扫码的userId为空, 则取默认值
mobileLoginParam.setAmosUserId(defaultUserId);
}
//peasantHouseholdServiceImpl.setPlatFormAccess();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment