|
|
@@ -65,6 +65,7 @@ class AuthController
|
|
|
$unionid = $json2sess['unionid'] ?? '';
|
|
|
// debuglog("openid=$openId, unionid=$unionid");
|
|
|
// find by unionid
|
|
|
+ $uid = 0;
|
|
|
if ($unionid != '') {
|
|
|
$uid = WechatUser::where(['unionid' => $unionid])
|
|
|
->where('user_type', 'routine')->value('uid');
|