dyjh 6 years ago
parent
commit
1cff1c81b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -148,7 +148,7 @@ class AlbumController extends Controller
 
         $session = $res['session_key'];
         $decryptedData = $app->encryptor->decryptData($session, $datas['iv'], $datas['encryptData']);
-        if (isset($decryptedData['unionId'])) {
+        if (!isset($decryptedData['unionId'])) {
             $check = AlbumUserModel::where('open_id', $res['openid'])->first();
         } else {
             $check = AlbumUserModel::where('wechat_union_id', $decryptedData['unionId'])->first();