소스 검색

bugfix: 这bug早有了,可能由于PHP版本更新出来了

joe 3 년 전
부모
커밋
992d016149
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/api/controller/wechat/AuthController.php

+ 1 - 0
app/api/controller/wechat/AuthController.php

@@ -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');