|
@@ -44,9 +44,7 @@ public class WxaUserApiController extends WxaController {
|
|
|
* 登陆接口
|
|
|
*/
|
|
|
public void login() {
|
|
|
- try {
|
|
|
-
|
|
|
-
|
|
|
+ try {
|
|
|
String jsCode = getPara("code");
|
|
|
if (StrKit.isBlank(jsCode)) {
|
|
|
Kv data = Kv.by("errcode", 500).set("errmsg", "code is blank");
|
|
@@ -83,9 +81,9 @@ public class WxaUserApiController extends WxaController {
|
|
|
doctorsWechatfind.update();
|
|
|
}
|
|
|
Doctors doctors = null;
|
|
|
- if (doctorsWechatfind.getDoctorId()!=null) {
|
|
|
- doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
|
|
|
- }
|
|
|
+// if (doctorsWechatfind.getDoctorId()!=null) {
|
|
|
+// doctors = Doctors.dao.findById(doctorsWechatfind.getDoctorId());
|
|
|
+// }
|
|
|
accessTokenCache.set("wxa:session:" + sessionId, apiResult.getJson());
|
|
|
LoginBean loginBean = new LoginBean();
|
|
|
loginBean.setSessionId(sessionId);
|