...
|
...
|
@@ -68,6 +68,14 @@ class PublicController extends RestBaseController |
|
|
}
|
|
|
if ($findThirdPartyUser) {
|
|
|
$response['is_register'] = 1;
|
|
|
if ($findThirdPartyUser['user_type'] == 3) {
|
|
|
$card = Db::name('card')->where(['user_id' => $findThirdPartyUser['id']])->field('id')->find();
|
|
|
if ($card) {
|
|
|
$findThirdPartyUser['card_id'] = $card['id'];
|
|
|
} else {
|
|
|
$findThirdPartyUser['card_id'] = null;
|
|
|
}
|
|
|
}
|
|
|
$response['userInfo'] = $findThirdPartyUser;
|
|
|
} else {
|
|
|
$response['is_register'] = 0;
|
...
|
...
|
|