|
|
@@ -166,7 +166,10 @@ class GzcLogs extends BaseController
|
|
166
|
166
|
$user_name = Db::name('user_certification')->where('uid',$log['uid'])->value('user_name');
|
|
167
|
167
|
$user_card = Db::name('user_certification')->where('uid',$log['uid'])->value('user_card');
|
|
168
|
168
|
$card_positive = Db::name('user_certification')->where('uid',$log['uid'])->value('card_positive');
|
|
169
|
|
- $card_reverse = Db::name('user_certification')->where('uid',$log['uid'])->value('card_reverse');
|
|
|
169
|
+ $cardType = Db::name('user_certification')->where('uid',$log['uid'])->value('card_reverse');
|
|
|
170
|
+ $birthday = Db::name('user_certification')->where('uid',$log['uid'])->value('card_type');
|
|
|
171
|
+ $gender = Db::name('user_certification')->where('uid',$log['uid'])->value('gender');
|
|
|
172
|
+ $card_reverse = Db::name('user_certification')->where('uid',$log['uid'])->value('birthday');
|
|
170
|
173
|
if(!$mobile || !$user_name || !$user_card || !$card_positive || !$card_reverse){
|
|
171
|
174
|
return app('json')->fail('存在实名数据缺失');
|
|
172
|
175
|
}
|
|
|
@@ -177,7 +180,8 @@ class GzcLogs extends BaseController
|
|
177
|
180
|
if($register['status'] != 200) return app('json')->fail('入账失败:'.$register['message']);
|
|
178
|
181
|
$uid = $register['data']['uid'] ?? 0;
|
|
179
|
182
|
if(!$uid) return app('json')->fail('创建或获取用户失败');
|
|
180
|
|
- $certification = $OrderGzcRepository->certification($uid, $mobile, $user_name, $user_card, $card_positive, $card_reverse);
|
|
|
183
|
+ // 兼容港澳台用户认证
|
|
|
184
|
+ $certification = $OrderGzcRepository->certification($uid, $mobile, $user_name, $user_card, $card_positive, $card_reverse,$cardType,$birthday,$gender);
|
|
181
|
185
|
if($certification['status'] != 200) return app('json')->fail('实名认证失败:'.$certification['message']);
|
|
182
|
186
|
$gzc = $OrderGzcRepository->gzc($uid,$log['pension']);
|
|
183
|
187
|
if($gzc['status'] != 200) return app('json')->fail('入账失败:'.$gzc['message']);
|