|
@@ -88,6 +88,9 @@ class GzcLogs extends BaseController
|
|
88
|
$user_card = Db::name('user_certification')->where('uid',$log['uid'])->value('user_card');
|
88
|
$user_card = Db::name('user_certification')->where('uid',$log['uid'])->value('user_card');
|
|
89
|
$card_positive = Db::name('user_certification')->where('uid',$log['uid'])->value('card_positive');
|
89
|
$card_positive = Db::name('user_certification')->where('uid',$log['uid'])->value('card_positive');
|
|
90
|
$card_reverse = Db::name('user_certification')->where('uid',$log['uid'])->value('card_reverse');
|
90
|
$card_reverse = Db::name('user_certification')->where('uid',$log['uid'])->value('card_reverse');
|
|
|
|
91
|
+ $cardType = Db::name('user_certification')->where('uid',$log['uid'])->value('card_type');
|
|
|
|
92
|
+ $gender = Db::name('user_certification')->where('uid',$log['uid'])->value('gender');
|
|
|
|
93
|
+ $birthday = Db::name('user_certification')->where('uid',$log['uid'])->value('birthday');
|
|
91
|
if(!$mobile || !$user_name || !$user_card || !$card_positive || !$card_reverse){
|
94
|
if(!$mobile || !$user_name || !$user_card || !$card_positive || !$card_reverse){
|
|
92
|
return app('json')->fail('存在实名数据缺失');
|
95
|
return app('json')->fail('存在实名数据缺失');
|
|
93
|
}
|
96
|
}
|
|
@@ -98,7 +101,9 @@ class GzcLogs extends BaseController
|
|
98
|
if($register['status'] != 200) return app('json')->fail('入账失败:'.$register['message']);
|
101
|
if($register['status'] != 200) return app('json')->fail('入账失败:'.$register['message']);
|
|
99
|
$uid = $register['data']['uid'] ?? 0;
|
102
|
$uid = $register['data']['uid'] ?? 0;
|
|
100
|
if(!$uid) return app('json')->fail('创建或获取用户失败');
|
103
|
if(!$uid) return app('json')->fail('创建或获取用户失败');
|
|
101
|
- $certification = $OrderGzcRepository->certification($uid, $mobile, $user_name, $user_card, $card_positive, $card_reverse);
|
|
|
|
|
|
104
|
+ // 兼容港澳台用户认证
|
|
|
|
105
|
+ $certification = $OrderGzcRepository->certification($uid, $mobile, $user_name, $user_card, $card_positive, $card_reverse,$cardType,$birthday,$gender);
|
|
|
|
106
|
+ Log::info('pcpc认证结果' . json_encode($certification));
|
|
102
|
if($certification['status'] != 200) return app('json')->fail('实名认证失败:'.$certification['message']);
|
107
|
if($certification['status'] != 200) return app('json')->fail('实名认证失败:'.$certification['message']);
|
|
103
|
$gzc = $OrderGzcRepository->gzc($uid,$log['pension']);
|
108
|
$gzc = $OrderGzcRepository->gzc($uid,$log['pension']);
|
|
104
|
if($gzc['status'] != 200) return app('json')->fail('入账失败:'.$gzc['message']);
|
109
|
if($gzc['status'] != 200) return app('json')->fail('入账失败:'.$gzc['message']);
|