| 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();
|