|
@@ -35,29 +35,27 @@ class Talent extends AdminController {
|
|
|
$params = $request->param();
|
|
|
$id = $params["id"];
|
|
|
$info = VerifyApi::getTalentInfoById($id, true);
|
|
|
-// $rsapi = new RsApi();
|
|
|
-// if($info['card_type'] == 1){
|
|
|
-// $endTime = strtotime(date('Y-m-d').'23:59:59');
|
|
|
-// $api_data = ApiData::where('uid','=',$info['card_number'])->where('action', '=', 'rending')->where('createTime','<',$endTime)->find();//当天没有记录就请求
|
|
|
-// if(!$api_data){
|
|
|
-// $content = [];
|
|
|
-// $info['rs']['I010902'] = $content['I010902'] = $rsapi->I010902($info['card_number']);
|
|
|
-// $info['rs']['I030101'] = $content['I030101'] = $rsapi->I030101($info['card_number']);
|
|
|
-// $api_model_data = [
|
|
|
-// 'uid' => $info['card_number'],
|
|
|
-// 'action' => 'rending',
|
|
|
-// 'content' => serialize($content),
|
|
|
-// 'createTime' => time()
|
|
|
-// ];
|
|
|
-//
|
|
|
-// ApiData::create($api_model_data);
|
|
|
-// }else{
|
|
|
-// $content = unserialize($api_data['content']);
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-//
|
|
|
-// }
|
|
|
+ $rsapi = new RsApi();
|
|
|
+ if($info['card_type'] == 1){
|
|
|
+ $endTime = strtotime(date('Y-m-d').'23:59:59');
|
|
|
+ $api_data = ApiData::where('uid','=',$info['card_number'])->where('action', '=', 'rending')->where('createTime','<',$endTime)->find();//当天没有记录就请求
|
|
|
+ if(!$api_data){
|
|
|
+ $content = [];
|
|
|
+ $info['rs']['I010902'] = $content['I010902'] = $rsapi->I010902($info['card_number']);
|
|
|
+ $info['rs']['I030101'] = $content['I030101'] = $rsapi->I030101($info['card_number']);
|
|
|
+ $api_model_data = [
|
|
|
+ 'uid' => $info['card_number'],
|
|
|
+ 'action' => 'rending',
|
|
|
+ 'content' => serialize($content),
|
|
|
+ 'createTime' => time()
|
|
|
+ ];
|
|
|
+
|
|
|
+ ApiData::create($api_model_data);
|
|
|
+ }else{
|
|
|
+ $content = unserialize($api_data['content']);
|
|
|
+ $info['rs'] = $content;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (in_array($info["checkState"], [TalentState::BASE_VERIFY_FAIL, TalentState::FST_SUBMIT, TalentState::BASE_VERIFY_PASS, TalentState::BASE_REVERIFY_REJECT, TalentState::BASE_REVERIFY_FAIL])) {
|
|
|
return view("talentInfo_base_check", ["info" => $info]);
|
|
|
} else {
|