作者 jiawen
1 个管道 的构建 通过 耗费 0 秒

增加card_id返回值

... ... @@ -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;
... ...