bug
This commit is contained in:
+16
-3
@@ -4,12 +4,16 @@ import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
import com.ruoyi.system.mapper.SysRoleMapper;
|
||||
import com.ruoyi.wisdomarbitrate.domain.dto.miniprogress.IdentityAuthentication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.miniprogress.WeChatUserVO;
|
||||
import com.ruoyi.wisdomarbitrate.service.miniprogress.WeChatUserService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangqiong
|
||||
* @description 微信小程序用户注册登录
|
||||
@@ -20,7 +24,8 @@ import org.springframework.web.bind.annotation.*;
|
||||
public class WeChatUserController extends BaseController {
|
||||
@Autowired
|
||||
private WeChatUserService weChatUserService;
|
||||
|
||||
@Autowired
|
||||
private SysRoleMapper roleMapper;
|
||||
/**
|
||||
* 小程序端获取手机验证码
|
||||
* @param userVO
|
||||
@@ -35,14 +40,22 @@ public class WeChatUserController extends BaseController {
|
||||
}
|
||||
return weChatUserService.sendCode(userVO);
|
||||
}
|
||||
@Anonymous
|
||||
@GetMapping("/roles")
|
||||
public AjaxResult roles()
|
||||
{
|
||||
List<SysRole> list = roleMapper.selectRoleAll();
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
/**
|
||||
* 小程序注册
|
||||
*/
|
||||
@Anonymous
|
||||
@PostMapping("/registerUser")
|
||||
public AjaxResult registerUser( @RequestBody IdentityAuthentication ientityAuthentication) {
|
||||
if(ientityAuthentication.getId()==null
|
||||
|| StrUtil.isEmpty(ientityAuthentication.getName())
|
||||
if(
|
||||
// ientityAuthentication.getId()==null ||
|
||||
StrUtil.isEmpty(ientityAuthentication.getName())
|
||||
|| StrUtil.isEmpty(ientityAuthentication.getIdentityNo())
|
||||
|| StrUtil.isEmpty(ientityAuthentication.getPhone())
|
||||
|| StrUtil.isEmpty(ientityAuthentication.getUserName())
|
||||
|
||||
+1
@@ -102,6 +102,7 @@ public class MsCaseApplicationPayController extends BaseController {
|
||||
|| dto.getCaseFlowId() == null) {
|
||||
return error("参数校验失败");
|
||||
}
|
||||
dto.setApplicantConfirm(false);
|
||||
return casePaymentService.confirmPaid(dto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user