Explorar o código

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

joe %!s(int64=3) %!d(string=hai) anos
pai
achega
992d016149
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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');