记得上下班打卡 | git大法好,push需谨慎

Commit 8e1b486a authored by jiangxiulong's avatar jiangxiulong

add 正在小程序

parent ab8b2922
......@@ -26,7 +26,7 @@ public class SweetWechatLoginController {
@ApiImplicitParam(type = "query", dataType = "String", name = "code", value = "微信code", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "encryptedData", value = "encryptedData", required = true),
@ApiImplicitParam(type = "query", dataType = "String", name = "iv", value = "iv", required = true),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "1草莓 2五百里 3mdsk"),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "1草莓 2五百里 3mdsk 4正在"),
})
public ResponseDto userInfo(
@RequestParam() String code,
......
......@@ -44,6 +44,11 @@ public class SweetWechatLoginServiceImpl {
@Value("${liquidnet.wechat.applet.mdsk.secret}")
private String mdskSecret;
@Value("${liquidnet.wechat.applet.zhengzai.appid}")
private String zhengzaiAppid;
@Value("${liquidnet.wechat.applet.zhengzai.secret}")
private String zhengzaiSecret;
public ResponseDto userInfo(String code, String encryptedData, String iv, Integer type) {
log.info("\n参数code:[{}] ", code);
log.info("\n参数encryptedData:[{}] ", encryptedData);
......@@ -65,6 +70,10 @@ public class SweetWechatLoginServiceImpl {
appId = mdskAppid;
appSecret = mdskSecret;
break;
case 4:
appId = zhengzaiAppid;
appSecret = zhengzaiSecret;
break;
}
WxMaConfig wxMaConfig = wxMaConfig(appId, appSecret);
WxMaService wxMaService = wxMaService(wxMaConfig);
......
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