提交 c8e5828c 编写于 作者: xinxu.wang's avatar xinxu.wang

POM 升级

上级 1c9714a5
流水线 #48403 已失败 于阶段
......@@ -288,7 +288,7 @@
<dependency>
<groupId>com.pica.cloud.wechat</groupId>
<artifactId>pica-cloud-applet-client</artifactId>
<version>1.1.0</version>
<version>1.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
......
......@@ -113,10 +113,7 @@ public class AccountController extends AccountBaseController {
@ApiParam(value = "小程序code", required = true) @RequestParam("code") String code,
@ApiParam(value = "小程序类型", required = true) @RequestParam("type") Integer type) {
AppletReq appletReq = new AppletReq();
appletReq.setCode(code);
appletReq.setType(type);
AppletModel appletModel = appletServiceClient.code2Session(appletReq).getData();
AppletModel appletModel = appletServiceClient.code2Session(code,type).getData();
if (StringUtil.isNull(appletModel) || StringUtil.isNull(appletModel.getUnionId())) {
throw new PicaException(PicaResultCode.PARAM_IS_INVALID.code(),"小程序code解密失败");
}
......
......@@ -572,10 +572,7 @@ public class LoginController extends AccountBaseController {
@ApiOperation("云鹊医助手小程序授权登录")
@PostMapping("/login/applet/authCode")
public PicaResponse<LoginResult> loginAppletAuthCode(@RequestBody AesAuthCodeAppletReq authCodeReq) {
AppletReq appletReq = new AppletReq();
appletReq.setCode(authCodeReq.getCode());
appletReq.setType(authCodeReq.getType());
AppletModel appletModel = appletServiceClient.code2Session(appletReq).getData();
AppletModel appletModel = appletServiceClient.code2Session(authCodeReq.getCode(),authCodeReq.getType()).getData();
if (StringUtil.isNull(appletModel) || StringUtil.isNull(appletModel.getUnionId())) {
throw new PicaException(PicaResultCode.PARAM_IS_INVALID.code(),"小程序code解密失败");
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册