|
|
|
@ -9,7 +9,7 @@ class Weapps::CodeSessionsController < Weapps::BaseController
|
|
|
|
|
set_weapp_session_key(result['session_key']) # weapp session_key写入缓存 后续解密需要
|
|
|
|
|
|
|
|
|
|
# 已授权,绑定过账号
|
|
|
|
|
open_user = ::OpenUser::Wechat.find_by(uid: result['unionid'])
|
|
|
|
|
open_user = OpenUsers::Wechat.find_by(uid: result['unionid'])
|
|
|
|
|
if open_user.present? && open_user.user
|
|
|
|
|
set_session_unionid(result['unionid'])
|
|
|
|
|
successful_authentication(open_user.user)
|
|
|
|
|