小程序登录移植
This commit is contained in:
parent
1c3fdca7d7
commit
0c1b72c9a5
@ -234,3 +234,48 @@ trtc:
|
||||
sdksecretkey: 83ab78d1a8513af6626d58cc2bacd7b28bfb2af06515fa02b0204129ebb53422
|
||||
secretid: AKIDOBpP2ICALat0wP4lcIiAMtZ7XgUJ5vMO
|
||||
secretkey: zxjJhGcx75lECyweHgphKYefWCkBPSHt
|
||||
|
||||
# 微信小程序参数配置信息
|
||||
applet-chat-config:
|
||||
# 微信小程序id,wxdec3416aa3d60cab
|
||||
applet-id: wxdc32268eca6b78f9
|
||||
# 微信小程序密钥,f58e19be0380c2ebc6e9e9684c0dacce
|
||||
secret: 0d0e41432908750460aef2bf0aa871ae
|
||||
# 微信小程序返回国家语言
|
||||
lang: zh_CN
|
||||
# 微信小程序授权类型
|
||||
grant-type: authorization_code
|
||||
# 微信小程序事件回调令牌
|
||||
token: uI1NGHesp7ylIYVYQvp0TlcDmUTKCHj2
|
||||
# 微信小程序事件回调消息加密密钥
|
||||
encoding-aes-key: 5rbyhMBpdnxTEVT54zeHMNcXi3ccilQZ209QqGi89EW
|
||||
|
||||
# 护理员微信小程序参数配置信息
|
||||
nurse-applet-chat-config:
|
||||
# 微信小程序id,wxa4f2b43d2ccb9908
|
||||
applet-id: wxa4f2b43d2ccb9908
|
||||
# 微信小程序密钥,
|
||||
secret: faeba9fc043cfdcb088f43be1747e054
|
||||
# 微信小程序返回国家语言
|
||||
lang: zh_CN
|
||||
# 微信小程序授权类型
|
||||
grant-type: authorization_code
|
||||
# 微信小程序事件回调令牌
|
||||
token: Yw3vfW1ILpc34qAVDtTpB2hesAMCpvW0
|
||||
# 微信小程序事件回调消息加密密钥
|
||||
encoding-aes-key: Lr2uq0F3ds36ZA4AUv1h3Pki0JO1Ql0QeG0z1r4A3at
|
||||
|
||||
# 小程序首页路径
|
||||
applet-page-config:
|
||||
# 首页跳转路径
|
||||
page-url: pages/startup/startup
|
||||
# 个人中心-优惠券页面跳转路径
|
||||
coupon-page-url: pages/coupon/coupon
|
||||
# 商品订单页面跳转路径
|
||||
goods-order-page-url: pages/CommodityOrder/CommodityOrder
|
||||
# 预约订单页面跳转路径
|
||||
appoint-order-page-url: pages/Nursingstationserviceorder/Nursingstationserviceorder
|
||||
# 积分页面跳转路径
|
||||
integral-page-url: pages/integral/integral
|
||||
# 护理结构详情页面跳转路径
|
||||
nursestation-details-page-url: pages/nursestation/nursestation
|
||||
@ -102,4 +102,18 @@ public class AppletLoginController extends BaseController {
|
||||
}
|
||||
return appletLoginService.nurseAppointment(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据openid判断当前用户信息是否存在,微信小程序登录页使用
|
||||
*
|
||||
* @param openId 微信用户的openid
|
||||
* @return 护理人列表集合, 标识,LOGIN:已登录,NOT_LOGIN:未登录
|
||||
*/
|
||||
@GetMapping("/existPatientInfo")
|
||||
public AjaxResult existPatientInfo(String openId) {
|
||||
if (StringUtils.isBlank(openId)) {
|
||||
return AjaxResult.error("会员用户微信唯一标识不存在!");
|
||||
}
|
||||
return appletLoginService.existPatientInfo(openId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -44,4 +44,12 @@ public interface AppletLoginService {
|
||||
* @return 预约结果
|
||||
*/
|
||||
AjaxResult nurseAppointment(AppointmentInfoDTO dto);
|
||||
|
||||
/**
|
||||
* 根据openid判断当前用户信息是否存在,微信小程序登录页使用
|
||||
*
|
||||
* @param openId 微信用户的openid
|
||||
* @return 护理人列表集合
|
||||
*/
|
||||
AjaxResult existPatientInfo(String openId);
|
||||
}
|
||||
|
||||
@ -293,6 +293,21 @@ public class AppletLoginServiceImpl implements AppletLoginService {
|
||||
return AjaxResult.success(appointmentOrderMapper.getAppointmentOrderByOrderNo(orderNo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据openid判断当前用户信息是否存在,微信小程序登录页使用
|
||||
*
|
||||
* @param openId 微信用户的openid
|
||||
* @return 护理人列表集合
|
||||
*/
|
||||
@Override
|
||||
public AjaxResult existPatientInfo(String openId) {
|
||||
PatientInfo patientInfo = appletLoginMapper.getPatientInfoByOpenId(openId);
|
||||
if (Objects.nonNull(patientInfo) && StringUtils.isNotBlank(patientInfo.getOpenid())) {
|
||||
return AjaxResult.success("LOGIN");
|
||||
}
|
||||
return AjaxResult.success("NOT_LOGIN");
|
||||
}
|
||||
|
||||
/**
|
||||
* 校验预约服务时间
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user