获取用户信息
This commit is contained in:
parent
2fa74aa3db
commit
dcc628e43c
|
|
@ -55,11 +55,7 @@ public class WxController extends BaseController {
|
|||
@ResponseBody
|
||||
public AjaxResult getUserInfo(@RequestBody Customer customer){
|
||||
try {
|
||||
Customer result = customerService.selectByOpenId(customer);
|
||||
if(StringUtils.isNull(result)){
|
||||
return AjaxResult.error("用户不存在");
|
||||
}
|
||||
return AjaxResult.success(result);
|
||||
return AjaxResult.success(customerService.selectByOpenId(customer));
|
||||
}catch (Exception e){
|
||||
return AjaxResult.error(e.getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue